fix
guoshipeng
2023-08-09 cbaef03bfcdb46feb5a185a7dcd90ab3df93e5c3
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;
    }
 
}