Add en-GB and es-MX to spellchecker

This commit is contained in:
Jason Blais 2018-10-16 16:46:40 -04:00 committed by GitHub
parent 2c9a816942
commit 2314f8b594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,12 +22,14 @@ function getSuggestionsMenus(win, suggestions) {
function getSpellCheckerLocaleMenus(onSelectSpellCheckerLocale) {
const currentLocale = ipcRenderer.sendSync('get-spellchecker-locale');
const locales = [
{language: 'English (UK)', locale: 'en-GB'},
{language: 'English (US)', locale: 'en-US'},
{language: 'French', locale: 'fr-FR'},
{language: 'German', locale: 'de-DE'},
{language: 'Spanish', locale: 'es-ES'},
{language: 'Portuguese (BR)', locale: 'pt-BR'},
{language: 'Spanish (ES)', locale: 'es-ES'},
{language: 'Spanish (MX)', locale: 'es-MX'},
{language: 'Dutch', locale: 'nl-NL'},
{language: 'Portuguese', locale: 'pt-BR'},
];
return locales.map((l) => ({
label: l.language,