Merge pull request #110 from shenlanchenwei/vue-h5-template

给多语言增加TS定义,保证多语言配置一致
This commit is contained in:
fonghehe 2022-11-29 10:26:19 +08:00 committed by GitHub
commit abf06aae4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 2 deletions

View File

@ -1,4 +1,6 @@
export const lang = {
import { langType } from './lang-base';
export const lang: langType = {
title: 'VUE H5 development template',
tabbar: {
home: 'Home',

View 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;
};
};

View File

@ -1,4 +1,6 @@
export const lang = {
import { langType } from './lang-base';
export const lang: langType = {
title: 'VUE H5开发模板',
tabbar: {
home: '首页',