1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

feat: Internationalization language order (#7666)

This commit is contained in:
2025-01-08 11:33:37 +08:00 committed by GitHub
parent 8d69da7702
commit 381cb61185
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@
<el-dropdown-item v-if="!globalStore.isIntl" command="en"> <el-dropdown-item v-if="!globalStore.isIntl" command="en">
English English
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="pt-BR">Português (Brasil)</el-dropdown-item>
<el-dropdown-item command="ja">日本語</el-dropdown-item> <el-dropdown-item command="ja">日本語</el-dropdown-item>
<el-dropdown-item command="pt-BR">Português (Brasil)</el-dropdown-item>
<el-dropdown-item command="ru">Русский</el-dropdown-item> <el-dropdown-item command="ru">Русский</el-dropdown-item>
<el-dropdown-item command="ms">Bahasa Melayu</el-dropdown-item> <el-dropdown-item command="ms">Bahasa Melayu</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>

View File

@ -318,8 +318,8 @@ const languageOptions = ref([
{ value: 'zh', label: '中文(简体)' }, { value: 'zh', label: '中文(简体)' },
{ value: 'tw', label: '中文(繁體)' }, { value: 'tw', label: '中文(繁體)' },
...(!globalStore.isIntl ? [{ value: 'en', label: 'English' }] : []), ...(!globalStore.isIntl ? [{ value: 'en', label: 'English' }] : []),
{ value: 'pt-BR', label: 'Português (Brasil)' },
{ value: 'ja', label: '日本語' }, { value: 'ja', label: '日本語' },
{ value: 'pt-BR', label: 'Português (Brasil)' },
{ value: 'ru', label: 'Русский' }, { value: 'ru', label: 'Русский' },
{ value: 'ms', label: 'Bahasa Melayu' }, { value: 'ms', label: 'Bahasa Melayu' },
]); ]);