Skip to content

Commit

Permalink
Use single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
chardoncs committed Jan 6, 2025
1 parent fe7f898 commit cf3f361
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ import { de } from './lang/de';
export const defaultNS = 'app';

export const supportedLocales = [
"en",
"es",
"de",
"fr",
"fil",
"ja",
"nl",
"ur",
"yue",
"zh-Hans",
"zh-Hant",
'en',
'es',
'de',
'fr',
'fil',
'ja',
'nl',
'ur',
'yue',
'zh-Hans',
'zh-Hant',
]

export const languageNames = {
system: 'system',
// Get local display names
...supportedLocales
.map(locale => ({ [locale]: new Intl.DisplayNames(locale, { type: "language" }).of(locale) }))
.map(locale => ({ [locale]: new Intl.DisplayNames(locale, { type: 'language' }).of(locale) }))
.reduce((acc, cur) => ({ ...acc, ...cur })),
};

Expand Down

0 comments on commit cf3f361

Please sign in to comment.