www/src/constants/i18n.ts
taroj1205 54dfef1eac
feat(i18n): implement internationalization support and refactor components for localization
- Added i18n configuration to `astro.config.mjs` for managing locales.
- Introduced utility functions for locale handling in `i18n.ts`.
- Updated various components (e.g., `BackButton`, `Button`, `Community`, `Footer`, `Hero`, `NavBar`, etc.) to utilize localized strings.
- Created new localized pages for `about`, `donate`, `download`, `release-notes`, and others.
- Removed outdated pages and adjusted imports to reflect new structure.
- Enhanced the `ModsList` component to support localization.
- Added English language JSON file for translations.
- Improved overall code organization and structure for better maintainability.
2025-05-09 23:49:41 +12:00

6 lines
114 B
TypeScript

export const I18N = {
DEFAULT_LOCALE: 'en',
LOCALES: [
{ label: 'English', value: 'en' },
],
} as const