File tree Expand file tree Collapse file tree 2 files changed +4
-25
lines changed
packages/v1-components/src/host/components/tag Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ import { deltaTransition, SIZE } from '@/common/components/tag'
7373import _i18n from ' ./i18n'
7474
7575const props = defineProps ({
76- /** Рамер */
76+ /** Размер */
7777 size: {
7878 type: String as unknown as PropType <SIZE >,
7979 default: SIZE .LG ,
Original file line number Diff line number Diff line change 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'
54import messages_es_ES from './i18n/es-ES.json'
65import 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- }
You can’t perform that action at this time.
0 commit comments