Skip to content

Commit d91de6e

Browse files
committed
chore: apply typo for coderabbitai suggestion
1 parent c4e1ec8 commit d91de6e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/compare-translations.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface LocaleInfo {
2828
mergeLocale?: boolean
2929
}
3030

31-
const contries = new Map<string, Map<string, LocaleInfo>>()
31+
const countries = new Map<string, Map<string, LocaleInfo>>()
3232

3333
const extractLocalInfo = (
3434
filePath: string,
@@ -44,14 +44,14 @@ const populateLocaleCountries = (): void => {
4444
for (const lang of Object.keys(countryLocaleVariants)) {
4545
const variants = countryLocaleVariants[lang]
4646
for (const variant of variants) {
47-
if (!contries.has(lang)) {
48-
contries.set(lang, new Map())
47+
if (!countries.has(lang)) {
48+
countries.set(lang, new Map())
4949
}
5050
if (variant.country) {
51-
contries.get(lang)!.set(lang, extractLocalInfo(lang, true))
52-
contries.get(lang)!.set(variant.code, extractLocalInfo(variant.code, true, true))
51+
countries.get(lang)!.set(lang, extractLocalInfo(lang, true))
52+
countries.get(lang)!.set(variant.code, extractLocalInfo(variant.code, true, true))
5353
} else {
54-
contries.get(lang)!.set(variant.code, extractLocalInfo(variant.code, false, true))
54+
countries.get(lang)!.set(variant.code, extractLocalInfo(variant.code, false, true))
5555
}
5656
}
5757
}
@@ -65,7 +65,7 @@ const populateLocaleCountries = (): void => {
6565
*/
6666
const checkCountryVariant = (localeInfo: LocaleInfo): void => {
6767
const { locale, lang, country } = localeInfo
68-
const countryVariant = contries.get(lang)
68+
const countryVariant = countries.get(lang)
6969
if (countryVariant) {
7070
if (country) {
7171
const found = countryVariant.get(locale)

0 commit comments

Comments
 (0)