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 +1 -1
- package/dist/store.js +6 -3
- package/package.json +1 -1
package/dist/package.json
CHANGED
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
|
-
|
|
249
|
-
}
|
|
250
|
+
// if (config.languages.primary === targetLanguage) {
|
|
251
|
+
// return;
|
|
252
|
+
// }
|
|
250
253
|
try {
|
|
251
254
|
const response = config.getAllTranslations
|
|
252
255
|
? await config.getAllTranslations()
|