@adminforth/i18n 2.0.18 → 2.0.19

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 CHANGED
@@ -20,5 +20,5 @@ custom/package.json
20
20
  custom/pnpm-lock.yaml
21
21
  custom/tsconfig.json
22
22
 
23
- sent 45,122 bytes received 305 bytes 90,854.00 bytes/sec
24
- total size is 43,959 speedup is 0.97
23
+ sent 45,296 bytes received 305 bytes 91,202.00 bytes/sec
24
+ total size is 44,133 speedup is 0.97
@@ -2,17 +2,20 @@
2
2
  <template>
3
3
  <div class="grid grid-cols-1 sm:grid-cols-2 gap-4 my-3 mt-5">
4
4
  <div class="flex items-center space-x-1">
5
- <span class="text-gray-300">{{ t('Total tokens will be used for translation:') }}</span>
5
+ <span class="text-gray-600 dark:text-gray-300">{{ t('Total tokens will be used for translation:') }}</span>
6
6
  <span class="text-lg font-semibold text-gray-900 dark:text-gray-100">{{ new Number(props.job.state?.totalTranslationTokenCost).toLocaleString() || 0 }}</span>
7
7
  </div>
8
8
  <div class="flex items-center space-x-1">
9
- <span class="text-gray-300">{{ t('Total translation token used:') }}</span>
9
+ <span class="text-gray-600 dark:text-gray-300">{{ t('Total translation token used:') }}</span>
10
10
  <span class="text-lg font-semibold text-gray-900 dark:text-gray-100">{{ new Number(props.job.state?.totalUsedTokens).toLocaleString() || 0 }}</span>
11
11
  </div>
12
12
  </div>
13
13
  <div class="grid grid-cols-3 gap-2">
14
- <div class="bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 border-gray-200 dark:border-gray-700 transition-all px-2 py-2 rounded-md border max-w-64 w-full flex items-center gap-2" v-for="(task, index) in translationTasks" :key="index">
15
- {{ task.state?.taskName }} to
14
+ <div class="bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 border-gray-200 dark:border-gray-700 transition-all px-2 py-2 rounded-md border max-w-64 w-full flex items-center justify-between gap-2" v-for="(task, index) in translationTasks" :key="index">
15
+ <span class="truncate">
16
+ {{ task.state?.taskName }} to
17
+ </span>
18
+ <div class="flex items-center gap-2 shrink-0">
16
19
  <span class="flag-icon"
17
20
  :class="`flag-icon-${getCountryCodeFromLangCode(task.state?.lang)}`"
18
21
  ></span>
@@ -20,6 +23,7 @@
20
23
  :is="getCustomComponent({file: '@@/plugins/BackgroundJobsPlugin/StateToIcon.vue'})"
21
24
  :status="task.status"
22
25
  />
26
+ </div>
23
27
  </div>
24
28
  </div>
25
29
  </template>
@@ -2,17 +2,20 @@
2
2
  <template>
3
3
  <div class="grid grid-cols-1 sm:grid-cols-2 gap-4 my-3 mt-5">
4
4
  <div class="flex items-center space-x-1">
5
- <span class="text-gray-300">{{ t('Total tokens will be used for translation:') }}</span>
5
+ <span class="text-gray-600 dark:text-gray-300">{{ t('Total tokens will be used for translation:') }}</span>
6
6
  <span class="text-lg font-semibold text-gray-900 dark:text-gray-100">{{ new Number(props.job.state?.totalTranslationTokenCost).toLocaleString() || 0 }}</span>
7
7
  </div>
8
8
  <div class="flex items-center space-x-1">
9
- <span class="text-gray-300">{{ t('Total translation token used:') }}</span>
9
+ <span class="text-gray-600 dark:text-gray-300">{{ t('Total translation token used:') }}</span>
10
10
  <span class="text-lg font-semibold text-gray-900 dark:text-gray-100">{{ new Number(props.job.state?.totalUsedTokens).toLocaleString() || 0 }}</span>
11
11
  </div>
12
12
  </div>
13
13
  <div class="grid grid-cols-3 gap-2">
14
- <div class="bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 border-gray-200 dark:border-gray-700 transition-all px-2 py-2 rounded-md border max-w-64 w-full flex items-center gap-2" v-for="(task, index) in translationTasks" :key="index">
15
- {{ task.state?.taskName }} to
14
+ <div class="bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 border-gray-200 dark:border-gray-700 transition-all px-2 py-2 rounded-md border max-w-64 w-full flex items-center justify-between gap-2" v-for="(task, index) in translationTasks" :key="index">
15
+ <span class="truncate">
16
+ {{ task.state?.taskName }} to
17
+ </span>
18
+ <div class="flex items-center gap-2 shrink-0">
16
19
  <span class="flag-icon"
17
20
  :class="`flag-icon-${getCountryCodeFromLangCode(task.state?.lang)}`"
18
21
  ></span>
@@ -20,6 +23,7 @@
20
23
  :is="getCustomComponent({file: '@@/plugins/BackgroundJobsPlugin/StateToIcon.vue'})"
21
24
  :status="task.status"
22
25
  />
26
+ </div>
23
27
  </div>
24
28
  </div>
25
29
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",