Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix frontend to include languages that do not have iso-639-1 codes #4363

Merged
merged 2 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update frontend/src/locales/scripts/get-validated-locales.js
  • Loading branch information
zackkrida committed May 20, 2024
commit b4faa68b1ecf401effe35e020b137a2b885441da
3 changes: 3 additions & 0 deletions frontend/src/locales/scripts/get-validated-locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const getValidatedLocales = async () => {
code: locale.slug,
dir: locale.textDirection || "ltr",
file: `${locale.slug}.json`,
// Check for a language in all three versions of the ISO 639 spec,
// defaulting to the v1 two-character codes before checking for the
// three-character codes in the v2 and v3 specs.
iso:
zackkrida marked this conversation as resolved.
Show resolved Hide resolved
locale.langCodeIso_639_1 ??
locale.langCodeIso_639_2 ??
Expand Down
Loading