@laerdal/navigation
Advanced tools
Comparing version 1.2.5-dev.2 to 1.2.5-dev.3
@@ -307,2 +307,3 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; | ||
children: /*#__PURE__*/_jsx(Switcher, { | ||
i18n: i18next, | ||
loggedIn: this.state.loggedIn, | ||
@@ -309,0 +310,0 @@ firstName: this.state.firstName, |
import i18n from 'i18next'; | ||
import da from '../public/locales/da-DK/translation.json'; | ||
import de from '../public/locales/de-DE/translation.json'; | ||
import en from '../public/locales/en/translation.json'; | ||
import es from '../public/locales/es-ES/translation.json'; | ||
import fi from '../public/locales/fi-FI/translation.json'; | ||
import fr from '../public/locales/fr-FR/translation.json'; | ||
import it from '../public/locales/it-IT/translation.json'; | ||
import ja from '../public/locales/ja-JP/translation.json'; | ||
import ko from '../public/locales/ko-KR/translation.json'; | ||
import nb from '../public/locales/nb-NO/translation.json'; | ||
import nl from '../public/locales/nl-NL/translation.json'; | ||
import pl from '../public/locales/pl-PL/translation.json'; | ||
import ptBR from '../public/locales/pt-BR/translation.json'; | ||
import ptPT from '../public/locales/pt-PT/translation.json'; | ||
import sv from '../public/locales/sv-SE/translation.json'; | ||
import zh from '../public/locales/zh-CN/translation.json'; | ||
import { initReactI18next } from 'react-i18next'; | ||
i18n.use(initReactI18next).init({ | ||
import da from './locales/da-DK/translation.json'; | ||
import de from './locales/de-DE/translation.json'; | ||
import en from './locales/en/translation.json'; | ||
import es from './locales/es-ES/translation.json'; | ||
import fi from './locales/fi-FI/translation.json'; | ||
import fr from './locales/fr-FR/translation.json'; | ||
import it from './locales/it-IT/translation.json'; | ||
import ja from './locales/ja-JP/translation.json'; | ||
import ko from './locales/ko-KR/translation.json'; | ||
import nb from './locales/nb-NO/translation.json'; | ||
import nl from './locales/nl-NL/translation.json'; | ||
import pl from './locales/pl-PL/translation.json'; | ||
import ptBR from './locales/pt-BR/translation.json'; | ||
import ptPT from './locales/pt-PT/translation.json'; | ||
import sv from './locales/sv-SE/translation.json'; | ||
import zh from './locales/zh-CN/translation.json'; | ||
var instance = i18n.createInstance(); | ||
instance.init({ | ||
lng: 'en', | ||
@@ -77,3 +77,3 @@ keySeparator: false, | ||
}); | ||
export default i18n; | ||
export default instance; | ||
//# sourceMappingURL=i18n.js.map |
{ | ||
"name": "@laerdal/navigation", | ||
"version": "1.2.5-dev.2", | ||
"version": "1.2.5-dev.3", | ||
"description": "Navigation for MyLaerdal Portal and friends", | ||
@@ -24,3 +24,3 @@ "main": "lib/index.cjs", | ||
"start": "cross-env BABEL_ENV=webpack webpack-dev-server --mode development --open --hot", | ||
"build": "concurrently yarn:build:* && tsc -p tsconfig.types.json --emitDeclarationOnly --declaration --declarationDir lib && yarn copy-files", | ||
"build": "concurrently yarn:build:* && tsc -p tsconfig.types.json --emitDeclarationOnly --declaration --declarationDir lib/ && yarn copy-files", | ||
"build:babel:esm": "cross-env BABEL_ENV=esm babel --source-maps --extensions \".js,.ts,.tsx\" src --out-dir lib --out-file-extension .js", | ||
@@ -32,3 +32,3 @@ "build:babel:cjs": "cross-env BABEL_ENV=cjs babel --source-maps --extensions \".js,.ts,.tsx\" src --out-dir lib --out-file-extension .cjs", | ||
"analyze": "cross-env BABEL_ENV=webpack webpack-bundle-analyzer dist/stats.json", | ||
"copy-files": "copyfiles ./public/**/* ./lib/" | ||
"copy-files": "copyfiles -u 1 ./src/locales/**/* ./lib/" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1843
911136