i18n-keyless-core 1.16.2 → 1.17.0

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/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i18n-keyless-core",
3
3
  "private": false,
4
- "version": "1.16.2",
4
+ "version": "1.17.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
package/dist/types.d.ts CHANGED
@@ -48,6 +48,12 @@ export type LanguagesConfig = {
48
48
  * the language to use when the app is initialized
49
49
  */
50
50
  initWithDefault?: Lang;
51
+ /**
52
+ * if true, the current language will not be hydrated from the storage, and the app will use the initWithDefault language
53
+ * this is useful if the language state commes from the url for example,
54
+ * like /{lang}/path/to/something or /path/to/something?lang={lang}
55
+ */
56
+ skipCurrentLanguageHydration?: boolean;
51
57
  };
52
58
  export type TranslationOptions = {
53
59
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i18n-keyless-core",
3
3
  "private": false,
4
- "version": "1.16.2",
4
+ "version": "1.17.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",