diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-04-03 17:15:33 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-04-03 17:15:33 -0700 |
commit | 9d5c82d9a8b9724797d8f053fbb7403918daa501 (patch) | |
tree | 2ddc2231bc559fc054c3a37011a8e8e2d73dea7e /src/locale/helpers.ts | |
parent | a32eb96210217e80e54553fc5c5895aa0e27fc06 (diff) | |
parent | 55e4ea84f8dfd3bea6253fc66d3e8439262fbc9b (diff) | |
download | voidsky-9d5c82d9a8b9724797d8f053fbb7403918daa501.tar.zst |
Merge branch 'atiksoftware-main' into main
Diffstat (limited to 'src/locale/helpers.ts')
-rw-r--r-- | src/locale/helpers.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts index 58e8a3a82..c2434c7df 100644 --- a/src/locale/helpers.ts +++ b/src/locale/helpers.ts @@ -1,7 +1,8 @@ import {AppBskyFeedDefs, AppBskyFeedPost} from '@atproto/api' +import * as bcp47Match from 'bcp-47-match' import lande from 'lande' + import {hasProp} from 'lib/type-guards' -import * as bcp47Match from 'bcp-47-match' import { AppLanguage, LANGUAGES_MAP_CODE2, @@ -146,6 +147,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage { return AppLanguage.zh_TW case 'it': return AppLanguage.it + case 'tr': + return AppLanguage.tr default: continue } |