mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2025-04-06 03:57:50 +08:00
Merge pull request #110 from shenlanchenwei/vue-h5-template
给多语言增加TS定义,保证多语言配置一致
This commit is contained in:
commit
abf06aae4c
@ -1,4 +1,6 @@
|
||||
export const lang = {
|
||||
import { langType } from './lang-base';
|
||||
|
||||
export const lang: langType = {
|
||||
title: 'VUE H5 development template',
|
||||
tabbar: {
|
||||
home: 'Home',
|
||||
|
18
src/i18n/lang/lang-base.ts
Normal file
18
src/i18n/lang/lang-base.ts
Normal file
@ -0,0 +1,18 @@
|
||||
export type langType = {
|
||||
title: string;
|
||||
tabbar: {
|
||||
home: string;
|
||||
list: string;
|
||||
member: string;
|
||||
demo: string;
|
||||
};
|
||||
language: {
|
||||
en: string;
|
||||
zh: string;
|
||||
};
|
||||
introduction: string;
|
||||
home: {
|
||||
support: string;
|
||||
cssMultiLanguage: string;
|
||||
};
|
||||
};
|
@ -1,4 +1,6 @@
|
||||
export const lang = {
|
||||
import { langType } from './lang-base';
|
||||
|
||||
export const lang: langType = {
|
||||
title: 'VUE H5开发模板',
|
||||
tabbar: {
|
||||
home: '首页',
|
||||
|
Loading…
x
Reference in New Issue
Block a user