Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: XRDDEV-2728 Complement - Adding Spanish language support #2448

Merged
merged 7 commits into from
Dec 12, 2024
767 changes: 767 additions & 0 deletions src/central-server/admin-service/ui/src/locales/es.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/central-server/admin-service/ui/src/plugins/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ import { messages } from '@niis/shared-ui';
import enAppMessages from '@/locales/en.json';

const loadedLanguages = new Set('en');
export const availableLanguages = ['en'];
export const availableLanguages = ['en', 'es'];

const defaultLanguage = import.meta.env.VITE_I18N_LOCALE || 'en';
const defaultFallbackLanguage = import.meta.env.VITE_FALLBACK_LOCALE || 'en';

const sharedLanguageMessages = {
en: messages.en,
es: messages.es,
};
const defaultLanguagePack = merge.all([
{ validation: enValidationMessages },
Expand Down
Loading