mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
perf: 优化国际化语言
This commit is contained in:
parent
85412ea4b7
commit
239013a2cb
3
resources/assets/js/language/index.js
vendored
3
resources/assets/js/language/index.js
vendored
@ -121,6 +121,9 @@ function getLanguage() {
|
||||
* @returns {string|*}
|
||||
*/
|
||||
function switchLanguage(inputString) {
|
||||
if (typeof arguments[1] !== "undefined") {
|
||||
inputString = utils.replaceArgumentsLanguage(inputString, arguments)
|
||||
}
|
||||
if (typeof inputString !== "string" || !inputString) {
|
||||
return inputString
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user