mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
migrate to typescript
This commit is contained in:
@@ -2,10 +2,18 @@ import en from './en.json';
|
||||
import vi from './vi.json';
|
||||
import zhHans from './zh_Hans.json';
|
||||
|
||||
export const defaultLanguage = 'en';
|
||||
interface LanguageInfo {
|
||||
name: string,
|
||||
displayName: string,
|
||||
alternativeLanguageTag: string,
|
||||
aliases?: string[],
|
||||
content: object
|
||||
}
|
||||
|
||||
export const defaultLanguage: string = 'en';
|
||||
|
||||
// To add new languages, please refer to https://ezbookkeeping.mayswind.net/translating
|
||||
export const allLanguages = {
|
||||
export const allLanguages: Record<string, LanguageInfo> = {
|
||||
'en': {
|
||||
name: 'English',
|
||||
displayName: 'English',
|
||||
Reference in New Issue
Block a user