spacedrive/interface/locales
Artsiom Voitas d338593fba
Added more translation keys to the app (#2442)
* added more translation keys

* added more keys

* added a lot of additional translation for every language available

* more translations

* fixed keys spelling
2024-05-02 14:06:09 +00:00
..
be Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
de Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
en Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
es Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
fr Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
it Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
ja Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
nl Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
ru Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
tr Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
zh-CN Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
zh-TW Added more translation keys to the app (#2442) 2024-05-02 14:06:09 +00:00
i18nnext.d.ts [ENG-1502] I18n (#1897) 2024-01-08 20:26:46 +00:00
README.md [feat]: update i18n contribution docs (#2440) 2024-05-02 12:52:17 +00:00

Locales

This directory contains the translations for the application.

Adding a new language

To add a new language, create a new directory with the language code (e.g. es for Spanish) and copy the en directory into it. Then, translate the strings in the new directory.

To display the new language as an option in the application, add the language code to the LANGUAGE_OPTIONS array in interface/app/$libraryId/settings/client/appearance.tsx.

export const LANGUAGE_OPTIONS = [
  { value: 'en', label: 'English' },
  { value: 'es', label: 'Español' },
  // The rest of the languages
];

Syncing locales

This command will help you sync locales with the source language (en) and find missing keys.

npx i18next-locales-sync -p en -s it -l ./interface/locales

replace it with the language you want to sync with the source language.