INNER CODE UNIT · TypeScript

pathFor

ArcReel/ArcReel · frontend/src/i18n/index.ts:14

function pathFor(lang: string, ns: string): string {
  return `./${lang}/${ns}.ts`;
}

export const SUPPORTED_LANGUAGES = ['zh', 'en', 'vi'] as const;
export type SupportedLanguage = typeof SUPPORTED_LANGUAGES[number];

export const LANGUAGE_DISPLAY_LABELS: Record<SupportedLanguage, string> = {
  zh: '中文',
  en: 'English',
  vi: 'Tiếng Việt',
};

const I18N_NAMESPACES = [
  'common',
  'auth',
  'dashboard',
  'errors',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…