mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Assistant embedding supports zh_TW language
This commit is contained in:
committed by
fit2cloud-chenyw
parent
4619dd4813
commit
460688e89d
@@ -50,7 +50,7 @@ export const getBrowserLocale = () => {
|
||||
}
|
||||
if (language.toLowerCase().startsWith('zh')) {
|
||||
const temp = language.toLowerCase().replace('_', '-')
|
||||
return temp === 'zh' ? 'zh-CN' : temp === 'zh-cn' ? 'zh-CN' : 'tw'
|
||||
return temp === 'zh' ? 'zh-CN' : temp === 'zh-cn' ? 'zh-CN' : 'zh-TW'
|
||||
}
|
||||
return language
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user