@adminforth/i18n 1.10.0 → 1.10.1
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/build.log +2 -2
- package/custom/BulkActionButton.vue +3 -3
- package/dist/custom/BulkActionButton.vue +3 -3
- package/dist/index.js +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -18,5 +18,5 @@ custom/package-lock.json
|
|
|
18
18
|
custom/package.json
|
|
19
19
|
custom/tsconfig.json
|
|
20
20
|
|
|
21
|
-
sent 39,
|
|
22
|
-
total size is 38,
|
|
21
|
+
sent 39,396 bytes received 267 bytes 79,326.00 bytes/sec
|
|
22
|
+
total size is 38,388 speedup is 0.97
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
</button>
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
|
-
<div class="grid grid-cols-2 gap-1 w-full">
|
|
35
|
+
<div class="af-i18n-translations-selector grid grid-cols-2 gap-1 w-full">
|
|
36
36
|
<Button @click="selectAll" :disabled="allChecked">{{ t('Select All') }}</Button>
|
|
37
37
|
<Button @click="uncheckAll" :disabled="noneChecked">{{ t('Uncheck All') }}</Button>
|
|
38
38
|
<div class="col-span-2 grid grid-cols-3 gap-1 mt-4">
|
|
39
|
-
<div class="group hover:bg-gray-100 dark:hover:bg-gray-
|
|
39
|
+
<div class="group hover:bg-gray-100 dark:hover:bg-gray-600 px-2 py-2 flex items-center cursor-pointer" v-for="(index, lang) in checkedLanguages" :key="index" @click="toggleLanguage(lang)">
|
|
40
40
|
<Checkbox v-model="checkedLanguages[lang]" />
|
|
41
41
|
<span class="flag-icon mr-2"
|
|
42
42
|
:class="`flag-icon-${getCountryCodeFromLangCode(lang)}`"
|
|
43
43
|
></span>
|
|
44
|
-
<span class="group-hover:text-gray-900 text-gray-600">{{ ISO6391.getName(lang.slice(0,2)) }} ({{ lang }})</span>
|
|
44
|
+
<span class="group-hover:text-gray-900 text-gray-600 dark:text-white dark:group-hover:text-gray-200">{{ ISO6391.getName(lang.slice(0,2)) }} ({{ lang }})</span>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
</div>
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
</button>
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
|
-
<div class="grid grid-cols-2 gap-1 w-full">
|
|
35
|
+
<div class="af-i18n-translations-selector grid grid-cols-2 gap-1 w-full">
|
|
36
36
|
<Button @click="selectAll" :disabled="allChecked">{{ t('Select All') }}</Button>
|
|
37
37
|
<Button @click="uncheckAll" :disabled="noneChecked">{{ t('Uncheck All') }}</Button>
|
|
38
38
|
<div class="col-span-2 grid grid-cols-3 gap-1 mt-4">
|
|
39
|
-
<div class="group hover:bg-gray-100 dark:hover:bg-gray-
|
|
39
|
+
<div class="group hover:bg-gray-100 dark:hover:bg-gray-600 px-2 py-2 flex items-center cursor-pointer" v-for="(index, lang) in checkedLanguages" :key="index" @click="toggleLanguage(lang)">
|
|
40
40
|
<Checkbox v-model="checkedLanguages[lang]" />
|
|
41
41
|
<span class="flag-icon mr-2"
|
|
42
42
|
:class="`flag-icon-${getCountryCodeFromLangCode(lang)}`"
|
|
43
43
|
></span>
|
|
44
|
-
<span class="group-hover:text-gray-900 text-gray-600">{{ ISO6391.getName(lang.slice(0,2)) }} ({{ lang }})</span>
|
|
44
|
+
<span class="group-hover:text-gray-900 text-gray-600 dark:text-white dark:group-hover:text-gray-200">{{ ISO6391.getName(lang.slice(0,2)) }} ({{ lang }})</span>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
</div>
|
package/dist/index.js
CHANGED
|
@@ -59,8 +59,8 @@ function isValidSupportedLanguageTag(langCode) {
|
|
|
59
59
|
console.warn(`Warning in validating language tag ${langCode}: reason=${reason}, code=${code}, offset=${offset}`);
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
const isValid = schema
|
|
63
|
-
return
|
|
62
|
+
const isValid = schema.language.length === 2;
|
|
63
|
+
return isValid;
|
|
64
64
|
}
|
|
65
65
|
catch (e) {
|
|
66
66
|
return false;
|
package/index.ts
CHANGED
|
@@ -61,8 +61,8 @@ function isValidSupportedLanguageTag(langCode: SupportedLanguage): boolean {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
const isValid = schema
|
|
65
|
-
return
|
|
64
|
+
const isValid = schema.language.length === 2;
|
|
65
|
+
return isValid;
|
|
66
66
|
} catch (e) {
|
|
67
67
|
return false;
|
|
68
68
|
}
|