Files
ai-coding-workflow-labs/gstack/src/i18n/index.js
T
tiennm99 51a4b90163 refactor: migrate quiz-project, gstack, and superpowers to JS+JSDoc
Convert all 41 TypeScript source/config files in cc4e-course/quiz-project
(Next.js), gstack (Astro), and superpowers (Vite/React/Phaser) to plain
JavaScript with JSDoc type annotations, replacing tsconfig.json with
jsconfig.json (strict + checkJs) in each subproject. No behavior changes:
lint, typecheck, test, and build gates match their TypeScript baselines
exactly in all three subprojects. Update stack references in the affected
READMEs accordingly.
2026-08-18 09:49:42 +07:00

14 lines
265 B
JavaScript

import { vi } from './vi';
const locales = /** @type {const} */ ({ vi });
/** @typedef {keyof typeof locales} LocaleKey */
/** @type {LocaleKey} */
const defaultLocale = 'vi';
/** @returns {typeof vi} */
export function t() {
return locales[defaultLocale];
}