Spell check: Restore english region support

This commit is contained in:
Scott Nonnenberg 2022-07-15 15:37:19 -07:00 committed by GitHub
parent 3cd77b0d53
commit 1bb91758e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 35 deletions

View file

@ -15,6 +15,7 @@ export type SupportLocaleType =
| 'sq'
| 'zh-tw';
// See https://source.chromium.org/chromium/chromium/src/+/main:ui/base/l10n/l10n_util.cc
export type ElectronLocaleType =
| 'af'
| 'ar'
@ -25,8 +26,19 @@ export type ElectronLocaleType =
| 'cy'
| 'da'
| 'de'
| 'de-AT'
| 'de-CH'
| 'de-DE'
| 'de-LI'
| 'el'
| 'en'
| 'en-AU'
| 'en-CA'
| 'en-GB'
| 'en-GB-oxendict'
| 'en-IN'
| 'en-NZ'
| 'en-US'
| 'eo'
| 'es'
| 'es_419'
@ -35,12 +47,17 @@ export type ElectronLocaleType =
| 'fa'
| 'fi'
| 'fr'
| 'fr-CA'
| 'fr-CH'
| 'fr-FR'
| 'he'
| 'hi'
| 'hr'
| 'hu'
| 'id'
| 'it'
| 'it-CH'
| 'it-IT'
| 'ja'
| 'km'
| 'kn'
@ -72,6 +89,7 @@ export type ElectronLocaleType =
| 'ur'
| 'vi'
| 'zh_CN'
| 'zh-HK'
| 'zh_TW';
export function mapToSupportLocale(ourLocale: string): SupportLocaleType {