mirror of
https://github.com/usememos/memos.git
synced 2025-10-26 22:36:16 +08:00
chore: fix typo (#3106)
This commit is contained in:
parent
335a0312f2
commit
ea104a5e54
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue