create-forgeon 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -145,7 +145,7 @@ describe('addModule', () => {
|
|
|
145
145
|
|
|
146
146
|
const i18nTs = fs.readFileSync(path.join(projectRoot, 'apps', 'web', 'src', 'i18n.ts'), 'utf8');
|
|
147
147
|
assert.match(i18nTs, /initReactI18next/);
|
|
148
|
-
assert.match(i18nTs,
|
|
148
|
+
assert.match(i18nTs, /\.\.\/\.\.\/\.\.\/resources\/i18n\/en\/common\.json/);
|
|
149
149
|
|
|
150
150
|
const rootPackage = fs.readFileSync(path.join(projectRoot, 'package.json'), 'utf8');
|
|
151
151
|
assert.match(rootPackage, /"i18n:check"/);
|
|
@@ -2,12 +2,12 @@ import i18n from 'i18next';
|
|
|
2
2
|
import { initReactI18next } from 'react-i18next';
|
|
3
3
|
import { I18N_DEFAULT_LANG } from '@forgeon/i18n-contracts';
|
|
4
4
|
import { getInitialLocale } from '@forgeon/i18n-web';
|
|
5
|
-
import enCommon from '
|
|
6
|
-
import enErrors from '
|
|
7
|
-
import enValidation from '
|
|
8
|
-
import ukCommon from '
|
|
9
|
-
import ukErrors from '
|
|
10
|
-
import ukValidation from '
|
|
5
|
+
import enCommon from '../../../resources/i18n/en/common.json';
|
|
6
|
+
import enErrors from '../../../resources/i18n/en/errors.json';
|
|
7
|
+
import enValidation from '../../../resources/i18n/en/validation.json';
|
|
8
|
+
import ukCommon from '../../../resources/i18n/uk/common.json';
|
|
9
|
+
import ukErrors from '../../../resources/i18n/uk/errors.json';
|
|
10
|
+
import ukValidation from '../../../resources/i18n/uk/validation.json';
|
|
11
11
|
|
|
12
12
|
const resources = {
|
|
13
13
|
en: {
|