quanyawei
2024-05-13 1ee177908aaf4cf2474384503404cd238036596c
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;
    }
 
}