Adding support for ES

This commit is contained in:
James Barnsley
2021-03-28 10:57:29 +13:00
parent 37bee34db6
commit 0289ed94a9
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import _nl from './nl.yaml';
import _ja from './ja.yaml';
import _pl from './pl.yaml';
import _it from './it.yaml';
import _es from './es.yaml';
// Merge languages with English. This provides English fallbacks to untranslated
// fields without breaking the UI (with blanks)
@ -24,9 +25,12 @@ const pl = {};
merge(pl, en, _pl);
const it = {};
merge(it, en, _it);
const es = {};
merge(es, en, _es);
const available = [
{ key: 'en', name: en.name },
{ key: 'es', name: es.name },
{ key: 'de', name: de.name },
{ key: 'fr', name: fr.name },
{ key: 'it', name: it.name },
@ -38,6 +42,7 @@ const available = [
export default {
en,
es,
de,
fr,
sv,
@ -50,6 +55,7 @@ export default {
export {
en,
es,
de,
fr,
sv,

View File

@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import get from 'lodash/get';
import dictionaries from './dictionaries';
import { titleCase } from '../util/helpers';