Fix spelling of generateLangOptions

This commit is contained in:
sienori 2019-02-23 00:25:41 +09:00
parent a73359094a
commit dc546ddcb4
3 changed files with 5 additions and 5 deletions

View file

@ -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 () => {

View file

@ -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 [