Unverified Commit ea104a5e authored by sunxunle's avatar sunxunle Committed by GitHub

chore: fix typo (#3106)

parent 335a0312
...@@ -22,7 +22,7 @@ export const findNearestMatchedLanguage = (language: string): Locale => { ...@@ -22,7 +22,7 @@ export const findNearestMatchedLanguage = (language: string): Locale => {
} }
// Try to match "xx-YY" to existing translation for "xx-ZZ" as a last resort // Try to match "xx-YY" to existing translation for "xx-ZZ" as a last resort
// If some match is undesired, it can be overriden in src/i18n.ts `fallbacks` option // If some match is undesired, it can be overridden in src/i18n.ts `fallbacks` option
for (const existing of locales) { for (const existing of locales) {
if (shortCode == existing.substring(0, 2)) { if (shortCode == existing.substring(0, 2)) {
return existing as Locale; return existing as Locale;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment