Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
Add Spanish translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-sc authored and jeffvli committed Mar 5, 2022
1 parent 439c3fb commit 9c9b293
Show file tree
Hide file tree
Showing 3 changed files with 359 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/i18n/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import { mockSettings } from '../shared/mockSettings';
const de = require('./locales/de.json');
const en = require('./locales/en.json');
const zhcn = require('./locales/zhcn.json');
const es = require('./locales/es.json');

const resources = {
en: { translation: en },
de: { translation: de },
zhcn: { translation: zhcn },
es: { translation: es },
};

i18n
Expand Down Expand Up @@ -45,4 +47,8 @@ export const Languages = [
label: '简体中文',
value: 'zhcn',
},
{
label: 'Español',
value: 'es',
},
];
2 changes: 1 addition & 1 deletion src/i18n/i18next-parser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
lineEnding: 'auto',
// Control the line ending. See options at https://github.com/ryanve/eol

locales: ['en', 'de', 'zhcn'],
locales: ['en', 'de', 'zhcn', 'es'],
// An array of the locales in your applications

namespaceSeparator: false,
Expand Down
Loading

0 comments on commit 9c9b293

Please sign in to comment.