Skip to content

Commit

Permalink
code cleanup for default JSON locale export (module export), see dais…
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweck committed May 5, 2019
1 parent 248363e commit 5eb75dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/shared/l10n/localize.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
const { newLocalizer } = require('@daisy/ace-localize');

// import * as enJson from "./locales/en.json";
// import * as frJson from "./locales/fr.json";
const enJson = require("./locales/en.json");
const frJson = require("./locales/fr.json");

export const localizer = newLocalizer({
en: {
name: "English",
default: true,
translation: enJson, // enJson.default || enJson,
translation: enJson,
},
fr: {
name: "Français",
translation: frJson, // frJson.default || frJson,
translation: frJson,
},
});

0 comments on commit 5eb75dd

Please sign in to comment.