mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
.. | ||
css | ||
locales | ||
templates | ||
languages.ts | ||
README.md |
About the languages
Locales are difficult, here is some guidance.
Process on adding new languages
- Use Weblate to add translations, see contributing guidelines.
- Add your language to
@/assets/languages.ts
. Must be in ISO format (ISO-639 for language and ISO-3166 for country/region). For joke languages, use any format. - If the language code doesn't have a region specified (Such as in
pt-BR
,BR
being the region), add a default region in@/utils/language.ts
atdefaultLanguageCodes
- If the language code doesn't contain a region (Such as in
zh-Hant
), add a default country in@/utils/language.ts
atcountryPriority
.