Skip to content

Commit

Permalink
Merge pull request #2448 from figueroarvictor/feature/XRDDEV-2728
Browse files Browse the repository at this point in the history
feat: XRDDEV-2728 Complement - Adding Spanish language support
  • Loading branch information
raits authored Dec 12, 2024
2 parents 5813777 + c33eafc commit b6ad6e7
Show file tree
Hide file tree
Showing 6 changed files with 2,027 additions and 3 deletions.
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

0 comments on commit b6ad6e7

Please sign in to comment.