From dc546ddcb40015dceb8ed5be39ddf04dcc22684c Mon Sep 17 00:00:00 2001 From: sienori Date: Sat, 23 Feb 2019 00:25:41 +0900 Subject: [PATCH] Fix spelling of generateLangOptions --- .../{genelateLangOptions.js => generateLangOptions.js} | 0 src/popup/components/Footer.js | 4 ++-- src/settings/defaultSettings.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/common/{genelateLangOptions.js => generateLangOptions.js} (100%) diff --git a/src/common/genelateLangOptions.js b/src/common/generateLangOptions.js similarity index 100% rename from src/common/genelateLangOptions.js rename to src/common/generateLangOptions.js diff --git a/src/popup/components/Footer.js b/src/popup/components/Footer.js index 0b67a10..02805cf 100644 --- a/src/popup/components/Footer.js +++ b/src/popup/components/Footer.js @@ -1,13 +1,13 @@ import React, { Component } from "react"; import browser from "webextension-polyfill"; -import genelateLangOptions from "src/common/genelateLangOptions"; +import generateLangOptions from "src/common/generateLangOptions"; import openUrl from "src/common/openUrl"; import "../styles/Footer.scss"; export default class Footer extends Component { constructor(props) { super(props); - this.langList = genelateLangOptions(); + this.langList = generateLangOptions(); } handleLinkClick = async () => { diff --git a/src/settings/defaultSettings.js b/src/settings/defaultSettings.js index b764567..1251919 100644 --- a/src/settings/defaultSettings.js +++ b/src/settings/defaultSettings.js @@ -1,9 +1,9 @@ import browser from "webextension-polyfill"; -import genelateLangOptions from "src/common/genelateLangOptions"; +import generateLangOptions from "src/common/generateLangOptions"; const getDefaultLangs = () => { const uiLang = browser.i18n.getUILanguage(); - const langOptions = genelateLangOptions(); + const langOptions = generateLangOptions(); const shouldUseUiLang = langOptions.some(lang => lang.value == uiLang); const targetLang = shouldUseUiLang ? uiLang : "en"; @@ -12,7 +12,7 @@ const getDefaultLangs = () => { return { targetLang, secondTargetLang }; }; -const langListOptions = genelateLangOptions(); +const langListOptions = generateLangOptions(); const defaultLangs = getDefaultLangs(); export default [