Skip to content

Commit c1ab92f

Browse files
committed
fix: Fixed en-GB locale for UiTag
1 parent d1f0d7f commit c1ab92f

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

packages/v1-components/src/host/components/tag/UiTag.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import { deltaTransition, SIZE } from '@/common/components/tag'
7373
import _i18n from './i18n'
7474
7575
const props = defineProps({
76-
/** Рамер */
76+
/** Размер */
7777
size: {
7878
type: String as unknown as PropType<SIZE>,
7979
default: SIZE.LG,
Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
import { I18nLocalized, Locale, Options } from '@/host/i18n'
2-
import I18n, { localize } from '@/host/i18n'
1+
import { define } from '@/host/i18n'
32

4-
import messages_en_GB from './i18n/ru-RU.json'
3+
import messages_en_GB from './i18n/en-GB.json'
54
import messages_es_ES from './i18n/es-ES.json'
65
import messages_ru_RU from './i18n/ru-RU.json'
76

8-
export const fallback = 'en-GB'
9-
10-
const i18n = new I18n({
7+
export default define({
118
messages: {
129
'en-GB': messages_en_GB,
1310
'es-ES': messages_es_ES,
1411
'ru-RU': messages_ru_RU,
1512
},
16-
fallback,
1713
})
18-
19-
const extend = (i18n: I18n, options : Options|null = null) => options
20-
? i18n.extend(options)
21-
: i18n
22-
23-
export const init = (
24-
locale: string,
25-
options : Options|null = null
26-
): I18nLocalized => localize(
27-
extend(i18n, options),
28-
locale as `${Locale}`
29-
)
30-
31-
export default {
32-
fallback,
33-
init,
34-
}

0 commit comments

Comments
 (0)