Skip to content

Translations Needed! #559

Description

@Vali-98

Starting from v0.10.0-beta1, ChatterUI will be accepting localization PRs.

Currently untranslated strings

  • contents of lib/*, mostly toasts and errors

Currently supported languages:

  • en
  • zh (machine translated)
  • ru (machine translated)
  • in

Adding Your Translations:

  • use the dev branch of ChatterUI
  • use i18n/locales/en.json for guidance on strings used in the app
  • add your localization json to i18n/locales/[your language].json
  • import your localization file to i18n/i18n.ts:
import your_language from './locales/your_language.json'

export const supportedLanguages: Language[] = [
   ...
    {
        id: 'xx',  // use the relevant IETF language tag https://en.wikipedia.org/wiki/IETF_language_tag
        translation: your_language,
        label: 'Your Language',
    },
]
  • it is recommended to use the vscode i18n-ally extension to scan the app for missing localizations
  • be sure to name your locale after the corresponding IETF language tag

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions