cometchat-i18n

Guide CometChatLocalize initialization and locale-setting APIs across UI kit platforms.

Updated May 28, 2026
One-click install
npx skills add https://github.com/MAX5271/CometChat --skill cometchat-i18n
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cometchat-i18n
Source: https://github.com/MAX5271/CometChat/tree/main/.agents/skills/cometchat-i18n
Command: npx skills add https://github.com/MAX5271/CometChat --skill cometchat-i18n

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents broken or inconsistent CometChat UI localization caused by mismatched i18n init/setLocale signatures across UI kit families and versions.

Core Features & Use Cases

  • Cross-family localization guidance: Covers React, React Native, Angular, Android (V5/V6), iOS (V5), and Flutter (V5/V6), including the different initialization patterns for each.
  • Drift-safe init verification: Helps you avoid silent failures like calling the wrong signature on Angular (object vs positional) and other family-specific API differences.
  • Production-ready i18n behavior: Addresses bundled languages, registering custom languages/resources, setting fallback to English where supported, and handling RTL behavior across web and native.

Quick Start

Use this skill to identify the correct CometChatLocalize init or setLocale call for your target UI kit family and then apply the recommended RTL and fallback settings for the selected language.

Frequently Asked Questions about cometchat-i18n

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I localize CometChat UI kits across React, React Native, and Angular?

Localize CometChat UI kits by using the correct CometChatLocalize initialization and setLocale API signatures for each specific platform and version. This skill guides proper init patterns for React, React Native, and Angular projects.

Why is my CometChat i18n setup failing silently on Angular?

CometChat i18n setup fails when calling the wrong initialization signature on Angular, which expects object arguments instead of positional ones. This skill verifies the correct API signatures to prevent mismatched init calls across UI kit families.

Does CometChat localization support runtime language switching and RTL rendering?

CometChat localization supports runtime language switching and RTL-aware rendering across web and native platforms. This skill configures bundled languages, custom string overrides, and handles document dir or forceRTL requirements where applicable.

What is the correct sequence for setting up CometChat locale and fallback language?

The correct sequence for CometChat locale setup requires initializing the UI kit first, then calling setLocale, and configuring fallback-to-English behavior. This skill ensures proper sequencing to avoid drift and silent localization failures.

Can I register custom language resources for CometChat on Android and iOS?

You can register custom language resources for CometChat on Android V5/V6 and iOS V5. This skill provides family-specific initialization patterns to register custom languages while handling fallback-to-English behavior where supported.

How do I fix CometChat localization drift between different UI kit versions?

Fix CometChat localization drift by matching the correct init and setLocale signatures for each UI kit family and version. This skill verifies API differences across Flutter V5/V6, Android V5/V6, and iOS V5 to ensure consistent i18n behavior.