mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-24 09:49:06 +01:00
4cc0ace0e3
close #53
18 lines
931 B
TypeScript
18 lines
931 B
TypeScript
import type { LocaleObject } from '@nuxtjs/i18n/dist/runtime/composables';
|
|
|
|
export const localesConst = [
|
|
{ files: [ 'ja-JP.json' ], code: 'ja', iso: 'ja-JP', name: '日本語' },
|
|
{ files: [ 'en-US.json' ], code: 'en', iso: 'en-US', name: 'English' },
|
|
{ files: [ 'id-ID.json' ], code: 'id', iso: 'id-ID', name: 'Bahasa Indonesia' },
|
|
{ files: [ 'ko-KR.json' ], code: 'ko', iso: 'ko-KR', name: '한국어' },
|
|
{ files: [ 'it-IT.json' ], code: 'it', iso: 'it-IT', name: 'Italiano' },
|
|
{ files: [ 'pl-PL.json' ], code: 'pl', iso: 'pl-PL', name: 'Polski' },
|
|
{ files: [ 'fr-FR.json' ], code: 'fr', iso: 'fr-FR', name: 'Français' },
|
|
{ files: [ 'zh-CN.json' ], code: 'cn', iso: 'zh-CN', name: '简体中文' },
|
|
{ files: [ 'zh-TW.json' ], code: 'tw', iso: 'zh-TW', name: '繁体中文' },
|
|
] as const;
|
|
|
|
export type LocaleCodes = typeof localesConst[number]['code'];
|
|
|
|
export const locales = localesConst as unknown as LocaleObject[];
|