quanyawei
2023-10-25 ab51d1f63674239f308e5581567f40b9acc9edf2
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;
    }
 
}