Skip to content

Commit c641378

Browse files
authored
fix: update supported locales (#2331)
* fix: update supported locales * chore: revert
1 parent fb7250a commit c641378

File tree

2 files changed

+184
-27
lines changed

2 files changed

+184
-27
lines changed

docs/account-experience/index.mdx

Lines changed: 96 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,104 @@ and favicon.
2222

2323
## Translations (i18n) & Message Customization
2424

25-
Currently, the account experience is available in 83 languages. For a full list of available languages please have a look at
26-
[the source](https://github.com/ory/elements/tree/main/packages/elements-react/src/locales). If you want to add a new language or
27-
fix some wording, please open a pull request in [ory/elements](https://github.com/ory/elements#internalization-i18n).
25+
The Ory Account Experience is available in 83 languages.
2826

29-
By default, the Account Experience automatically adapts to the user's language preferences, and offers translations for all
30-
supported languages. Each language can be enabled or disabled in the Ory Console
31-
under&nbsp;<ConsoleLink route="project.accountExperience.locales" />.
27+
<details>
28+
<summary>Full list of supported languages</summary>
3229

33-
To determine the language to use, the Account Experience uses the `Accept-Language` header. If the language is not available, the
34-
Default Language (English) is used. To change the default language, go
35-
to&nbsp;<ConsoleLink route="project.accountExperience.locales" /> and select your preferred default language.
30+
- Afrikaans (`af`)
31+
- Akan (`ak`)
32+
- Amharic (`am`)
33+
- Arabic (`ar`)
34+
- Assamese (`as`)
35+
- Azerbaijani (Latin) (`az`)
36+
- Belarusian (`be`)
37+
- Bulgarian (`bg`)
38+
- Bamanankan (`bm`)
39+
- Bangla (`bn`)
40+
- Catalan (`ca`)
41+
- Czech (`cs`)
42+
- Danish (`da`)
43+
- German (`de`)
44+
- Greek (`el`)
45+
- English (`en`)
46+
- Spanish (`es`)
47+
- Estonian (`et`)
48+
- Persian (`fa`)
49+
- Finnish (`fi`)
50+
- French (`fr`)
51+
- Gujarati (`gu`)
52+
- Hausa (Latin) (`ha`)
53+
- Hebrew (`he`)
54+
- Hindi (`hi`)
55+
- Croatian (`hr`)
56+
- Hungarian (`hu`)
57+
- Armenian (`hy`)
58+
- Indonesian (`id`)
59+
- Igbo (`ig`)
60+
- Italian (`it`)
61+
- Japanese (`ja`)
62+
- Georgian (`ka`)
63+
- Kazakh (`kk`)
64+
- Khmer (`km`)
65+
- Kannada (`kn`)
66+
- Korean (`ko`)
67+
- Central Kurdish (`ku`)
68+
- Kyrgyz (`ky`)
69+
- Lithuanian (`lt`)
70+
- Latvian (`lv`)
71+
- Macedonian (`mk`)
72+
- Malayalam (`ml`)
73+
- Mongolian (Cyrillic) (`mn`)
74+
- Marathi (`mr`)
75+
- Malay (`ms`)
76+
- Burmese (`my`)
77+
- Nepali (`ne`)
78+
- Dutch (`nl`)
79+
- Norwegian (Bokmal) (`no`)
80+
- Odia (`or`)
81+
- Punjabi (`pa`)
82+
- Polish (`pl`)
83+
- Pashto (`ps`)
84+
- Portuguese (`pt`)
85+
- Romanian (`ro`)
86+
- Russian (`ru`)
87+
- Sindhi (`sd`)
88+
- Sinhala (`si`)
89+
- Slovak (`sk`)
90+
- Slovenian (`sl`)
91+
- Somali (`so`)
92+
- Albanian (`sq`)
93+
- Serbian (Latin) (`sr`)
94+
- Sundanese (`su`)
95+
- Swedish (`sv`)
96+
- Kiswahili (`sw`)
97+
- Tamil (`ta`)
98+
- Telugu (`te`)
99+
- Tajik (Cyrillic) (`tg`)
100+
- Thai (`th`)
101+
- Turkmen (`tk`)
102+
- Tagalog (`tl`)
103+
- Turkish (`tr`)
104+
- Uyghur (`ug`)
105+
- Ukrainian (`uk`)
106+
- Urdu (`ur`)
107+
- Uzbek (Latin) (`uz`)
108+
- Vietnamese (`vi`)
109+
- Xhosa (`xh`)
110+
- Yoruba (`yo`)
111+
- Chinese (Simplified) (`zh`)
112+
- Zulu (`zu`)
36113

37-
To turn off automatic language detection, disable **Respect the user's system language preferences** in the Ory Console
38-
under&nbsp;<ConsoleLink route="project.accountExperience.locales" />.
114+
</details>
39115

40-
### Custom locales
116+
The source is available in the
117+
[GitHub repository of Ory Elements](https://github.com/ory/elements/tree/main/packages/elements-react/src/locales).
41118

42-
You can customize any of the existing translations or add your own translations in the Ory Console
43-
under&nbsp;<ConsoleLink route="project.accountExperience.locales" />. Click on the edit icon for the language you want to
44-
customize, and then modify the messages as needed. Custom translations will override the default translations provided by Ory
45-
Elements.
119+
To determine the language to use, the Account Experience uses the `Accept-Language` header. If the language isn't available, the
120+
fallback language (English) is used. Custom translations are supported as well, use the edit button next to the language to
121+
override the default translations.
122+
123+
## Custom Domains
124+
125+
The Account Experience is also available under custom domains the same way it works on the slug URL.

docs/elements/guides/03_internationalization.mdx

Lines changed: 88 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,99 @@ messages.
1818

1919
## Set the default locale
2020

21-
By default, a set of translations is provided for the following locales:
22-
23-
- English (`en`)
21+
By default, a set of translations is provided for 83 languages:
22+
23+
<details>
24+
<summary>Full list of supported languages</summary>
25+
26+
- Afrikaans (`af`)
27+
- Akan (`ak`)
28+
- Amharic (`am`)
29+
- Arabic (`ar`)
30+
- Assamese (`as`)
31+
- Azerbaijani (Latin) (`az`)
32+
- Belarusian (`be`)
33+
- Bulgarian (`bg`)
34+
- Bamanankan (`bm`)
35+
- Bangla (`bn`)
36+
- Catalan (`ca`)
37+
- Czech (`cs`)
38+
- Danish (`da`)
2439
- German (`de`)
40+
- Greek (`el`)
41+
- English (`en`)
2542
- Spanish (`es`)
43+
- Estonian (`et`)
44+
- Persian (`fa`)
45+
- Finnish (`fi`)
2646
- French (`fr`)
47+
- Gujarati (`gu`)
48+
- Hausa (Latin) (`ha`)
49+
- Hebrew (`he`)
50+
- Hindi (`hi`)
51+
- Croatian (`hr`)
52+
- Hungarian (`hu`)
53+
- Armenian (`hy`)
54+
- Indonesian (`id`)
55+
- Igbo (`ig`)
2756
- Italian (`it`)
57+
- Japanese (`ja`)
58+
- Georgian (`ka`)
59+
- Kazakh (`kk`)
60+
- Khmer (`km`)
61+
- Kannada (`kn`)
62+
- Korean (`ko`)
63+
- Central Kurdish (`ku`)
64+
- Kyrgyz (`ky`)
65+
- Lithuanian (`lt`)
66+
- Latvian (`lv`)
67+
- Macedonian (`mk`)
68+
- Malayalam (`ml`)
69+
- Mongolian (Cyrillic) (`mn`)
70+
- Marathi (`mr`)
71+
- Malay (`ms`)
72+
- Burmese (`my`)
73+
- Nepali (`ne`)
74+
- Dutch (`nl`)
75+
- Norwegian (Bokmal) (`no`)
76+
- Odia (`or`)
77+
- Punjabi (`pa`)
78+
- Polish (`pl`)
79+
- Pashto (`ps`)
80+
- Portuguese (`pt`)
81+
- Romanian (`ro`)
82+
- Russian (`ru`)
83+
- Sindhi (`sd`)
84+
- Sinhala (`si`)
85+
- Slovak (`sk`)
86+
- Slovenian (`sl`)
87+
- Somali (`so`)
88+
- Albanian (`sq`)
89+
- Serbian (Latin) (`sr`)
90+
- Sundanese (`su`)
2891
- Swedish (`sv`)
29-
30-
:::note
31-
32-
A full list is available in the
33-
[GitHub repository of Ory Elements](https://github.com/ory/elements/tree/main/packages/elements-react/src/locales). Contributions
34-
of new translations are welcome!
35-
36-
:::
92+
- Kiswahili (`sw`)
93+
- Tamil (`ta`)
94+
- Telugu (`te`)
95+
- Tajik (Cyrillic) (`tg`)
96+
- Thai (`th`)
97+
- Turkmen (`tk`)
98+
- Tagalog (`tl`)
99+
- Turkish (`tr`)
100+
- Uyghur (`ug`)
101+
- Ukrainian (`uk`)
102+
- Urdu (`ur`)
103+
- Uzbek (Latin) (`uz`)
104+
- Vietnamese (`vi`)
105+
- Xhosa (`xh`)
106+
- Yoruba (`yo`)
107+
- Chinese (Simplified) (`zh`)
108+
- Zulu (`zu`)
109+
110+
</details>
111+
112+
The source is available in the
113+
[GitHub repository of Ory Elements](https://github.com/ory/elements/tree/main/packages/elements-react/src/locales).
37114

38115
To set the default locale for your application, see [the locale configuration section](./04_configuration.mdx#locale-i18n).
39116

0 commit comments

Comments
 (0)