quanyawei
2023-11-13 d6833c760d1f00082555bbe55feb05b41e761e6c
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;
    }
 
}