Skip to content

Commit

Permalink
Update Locales
Browse files Browse the repository at this point in the history
  • Loading branch information
AguzzTN54 committed Nov 9, 2023
1 parent ae14362 commit 2139b09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/helpers/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { init, register, getLocaleFromNavigator } from 'svelte-i18n';
import { localConfig } from '$lib/store/localstore-manager';

const supportedLocales = [
'zh-CN',
'zh-TW',
'de-DE',
'en-US',
'fr-FR',
Expand All @@ -12,11 +14,9 @@ const supportedLocales = [
'pt-BR',
'ru-RU',
'th-TH',
'vi-VN',
'zh-CN',
'zh-TW'
'vi-VN'
];
const itemLocales = ['en-US', 'it-IT', 'ja-JP', 'pt-BR', 'ru-RU', 'vi-VN', 'zh-CN', 'zh-TW'];
const itemLocales = ['zh-CN', 'zh-TW', 'en-US', 'it-IT', 'ja-JP', 'pt-BR', 'ru-RU', 'vi-VN'];

const checkLocale = () => {
const savedLocale = browser ? localConfig.get('locale') : null;
Expand Down
9 changes: 9 additions & 0 deletions src/locales/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ If you are not familiar with javascript especially sveltekit or don't know how t
</a>
</td>
</tr>
<tr>
<td> Chinese (Traditional) </td>
<td>
<a href="https://github.com/wibe01204 ">
<img width="20px" src="https://avatars.githubusercontent.com/u/90883053?s=20" />
wibe01204
</a>
</td>
</tr>
<tr>
<td> Deutsch </td>
<td>
Expand Down

0 comments on commit 2139b09

Please sign in to comment.