diff --git a/src/lib/utils/translation.ts b/src/lib/utils/translation.ts index 7d2efae..690ca86 100644 --- a/src/lib/utils/translation.ts +++ b/src/lib/utils/translation.ts @@ -9,9 +9,17 @@ import { FluentBundle, FluentResource, type FluentVariable } from '@fluent/bundl import { translationData } from '$lib/localization/translations/index.js' export const availableLanguages: LangResponse[] = langs - export const fallbackLang = 'ko' +export const excludeLanguages = (...languages: string[]) => { + languages.forEach((l) => { + const index = availableLanguages.findIndex((x) => x.code === l) + if (index >= 0) { + availableLanguages.splice(index, 1) + } + }) +} + const registeredLangSections: string[] = [] const langSections = ['ui-common', 'ui-footer', 'ui-search'] as const