cometchat-i18n
Ground truth: the UI Kit
CometChatLocalizeAPI +docs/fundamentals. Official docs: https://www.cometchat.com/docs/fundamentals/overview · Docs MCP:claude mcp add --transport http cometchat-docs https://www.cometchat.com/docs/mcp(or fetch the URL directly without MCP). Verify symbols against the installed package/source before relying on them.
Purpose
Localize the CometChat UI Kit to the user's language. Every kit ships with English + ~15 bundled languages (Arabic, Bengali, Chinese, German, Spanish, French, Hindi, Indonesian, Italian, Japanese, Korean, Malay, Portuguese, Russian, Swedish, Turkish — exact set varies by kit version). Custom languages can be added at runtime.
The biggest gotcha: the localization API differs across kits. Web + Angular v5 use CometChatLocalize.init({ ... }) (object); React Native v5 uses a <CometChatI18nProvider> component + useCometChatTranslation hook (no CometChatLocalize.init); Android uses CometChatLocalize.setLocale(context, "es") (Context + code String); iOS uses CometChatLocalize.set(locale: "es"); Flutter has no CometChatLocalize class at all — register the kit's Translations localization delegate. (Angular's positional init("es") was a v4-only form — v5 moved to the object signature, matching React.) This skill is the canonical reference.
API surface per family
React (v6) — object signature
import { CometChatLocalize } from "@cometchat/chat-uikit-react";