quanyawei
2023-10-18 e86b3edfe6d0cad7d744828a65ca1330e84fdcde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import axios from 'axios';
import { ILocalsProvider } from './ILocalsProvider';
 
/**
 * json 文件国际化信息提供者
 */
export class JsonLocaleProvider implements ILocalsProvider {
 
    public getMesage(lang: any): Promise<any> {
        const jsonLang = axios.get(`/assets/locales/${lang}.json`);
        return jsonLang;
    }
 
}