Skip to content

Commit

Permalink
Update frontend/src/locales/scripts/get-validated-locales.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkrida committed May 20, 2024
1 parent e69dea8 commit b4faa68
Showing 1 changed file with 3 additions and 0 deletions.
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:
locale.langCodeIso_639_1 ??
locale.langCodeIso_639_2 ??
Expand Down

0 comments on commit b4faa68

Please sign in to comment.