@adminforth/i18n 2.0.6 → 2.0.8
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 +1 -1
- package/dist/custom/BulkActionButton.vue +1 -1
- package/dist/index.js +3 -1
- package/index.ts +3 -2
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -20,5 +20,5 @@ custom/package.json
|
|
|
20
20
|
custom/pnpm-lock.yaml
|
|
21
21
|
custom/tsconfig.json
|
|
22
22
|
|
|
23
|
-
sent 44,
|
|
24
|
-
total size is 43,
|
|
23
|
+
sent 44,701 bytes received 305 bytes 90,012.00 bytes/sec
|
|
24
|
+
total size is 43,554 speedup is 0.97
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<Button @click="selectAll" :disabled="allChecked">{{ t('Select All') }}</Button>
|
|
38
38
|
<Button @click="uncheckAll" :disabled="noneChecked">{{ t('Uncheck All') }}</Button>
|
|
39
39
|
<div class="col-span-2 grid grid-cols-3 gap-1 mt-4">
|
|
40
|
-
<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="
|
|
40
|
+
<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="lang" @click="toggleLanguage(lang)">
|
|
41
41
|
<Checkbox v-model="checkedLanguages[lang]" />
|
|
42
42
|
<span class="flag-icon mr-2"
|
|
43
43
|
:class="`flag-icon-${getCountryCodeFromLangCode(lang)}`"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<Button @click="selectAll" :disabled="allChecked">{{ t('Select All') }}</Button>
|
|
38
38
|
<Button @click="uncheckAll" :disabled="noneChecked">{{ t('Uncheck All') }}</Button>
|
|
39
39
|
<div class="col-span-2 grid grid-cols-3 gap-1 mt-4">
|
|
40
|
-
<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="
|
|
40
|
+
<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="lang" @click="toggleLanguage(lang)">
|
|
41
41
|
<Checkbox v-model="checkedLanguages[lang]" />
|
|
42
42
|
<span class="flag-icon mr-2"
|
|
43
43
|
:class="`flag-icon-${getCountryCodeFromLangCode(lang)}`"
|
package/dist/index.js
CHANGED
|
@@ -419,7 +419,9 @@ export default class I18nPlugin extends AdminForthPlugin {
|
|
|
419
419
|
if (!resourceConfig.options.pageInjections.list.threeDotsDropdownItems) {
|
|
420
420
|
resourceConfig.options.pageInjections.list.threeDotsDropdownItems = [];
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
if (this.options.completeAdapter) {
|
|
423
|
+
resourceConfig.options.pageInjections.list.threeDotsDropdownItems.push(pageInjection);
|
|
424
|
+
}
|
|
423
425
|
// if there is menu item with resourceId, add .badge function showing number of untranslated strings
|
|
424
426
|
const addBadgeCountToMenuItem = (menuItem) => {
|
|
425
427
|
this.menuItemWithBadgeId = menuItem.itemId;
|
package/index.ts
CHANGED
|
@@ -484,8 +484,9 @@ export default class I18nPlugin extends AdminForthPlugin {
|
|
|
484
484
|
if (!resourceConfig.options.pageInjections.list.threeDotsDropdownItems) {
|
|
485
485
|
resourceConfig.options.pageInjections.list.threeDotsDropdownItems = [];
|
|
486
486
|
}
|
|
487
|
-
|
|
488
|
-
|
|
487
|
+
if (this.options.completeAdapter) {
|
|
488
|
+
(resourceConfig.options.pageInjections.list.threeDotsDropdownItems as AdminForthComponentDeclaration[]).push(pageInjection);
|
|
489
|
+
}
|
|
489
490
|
|
|
490
491
|
// if there is menu item with resourceId, add .badge function showing number of untranslated strings
|
|
491
492
|
const addBadgeCountToMenuItem = (menuItem: AdminForthConfigMenuItem) => {
|