@adaptivestone/framework 3.2.1 → 3.2.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 3.2.2
2
+
3
+ [UPDATE] add options for i18n to config.
4
+ [CHANGE] by default i18n not writing missed keys. Can be enabled via config
5
+
1
6
  ### 3.2.1
2
7
 
3
8
  [UPDATE] updated deps
package/config/i18n.js CHANGED
@@ -2,6 +2,8 @@ module.exports = {
2
2
  enabled: true,
3
3
  preload: ['en', 'ru'],
4
4
  fallbackLng: 'en',
5
+ saveMissing: false,
6
+ debug: false,
5
7
  // https://github.com/i18next/i18next-http-middleware#detector-options
6
8
  // in additional we have 'xLang' that detect language based on header 'xLang'
7
9
  langDetectionOders: ['xLang'], // from order option
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptivestone/framework",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "Adaptive stone node js framework",
5
5
  "main": "src/index.js",
6
6
  "engines": {
@@ -133,8 +133,8 @@ class HttpServer extends Base {
133
133
  },
134
134
  fallbackLng: I18NConfig.fallbackLng,
135
135
  preload: I18NConfig.preload,
136
- saveMissing: true,
137
- debug: false,
136
+ saveMissing: I18NConfig.saveMissing,
137
+ debug: I18NConfig.debug,
138
138
  detection: {
139
139
  // caches: ['cookie'],
140
140
  order: I18NConfig.langDetectionOders || ['xLang'],