国际化

This commit is contained in:
John
2024-03-09 00:45:48 +08:00
parent c595061dc8
commit 80dbf50d4b
28 changed files with 745 additions and 291 deletions

View File

@@ -0,0 +1,29 @@
import { http } from '@/utils/http/axios';
const baseUrl = '/api'
/**
* @description: getLoansInfo
*/
export function getDefaultLocal() {
// zh_CN 中文
// gu_IN 印度
const language = localStorage.getItem('lang')
let lang = 'zh_CN'
if (language === 'zh') {
lang = 'zh_CN'
} else if (language === 'id') {
lang = 'gu_IN'
}
return http.request({
url: `${baseUrl}/app/home/loans/defaultLocal`,
method: 'GET',
params: {
lang
}
});
}