i18n-keyless-react 1.5.2 → 1.5.3

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-react",
3
3
  "private": false,
4
- "version": "1.5.2",
4
+ "version": "1.5.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
package/dist/store.js CHANGED
@@ -126,6 +126,9 @@ export const useI18nKeyless = create((set, get) => ({
126
126
  // console.error("i18n-keyless: Key length exceeds 280 characters limit:", key);
127
127
  // return;
128
128
  // }
129
+ if (!key) {
130
+ return;
131
+ }
129
132
  const translation = get().translations[key];
130
133
  if (translation) {
131
134
  return;
@@ -244,9 +247,9 @@ export async function fetchAllTranslations(targetLanguage) {
244
247
  console.error("i18n-keyless: No config found");
245
248
  return;
246
249
  }
247
- if (config.languages.primary === targetLanguage) {
248
- return;
249
- }
250
+ // if (config.languages.primary === targetLanguage) {
251
+ // return;
252
+ // }
250
253
  try {
251
254
  const response = config.getAllTranslations
252
255
  ? await config.getAllTranslations()
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i18n-keyless-react",
3
3
  "private": false,
4
- "version": "1.5.2",
4
+ "version": "1.5.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",