Farmbot-Web-App/frontend/revert_to_english.ts

8 lines
186 B
TypeScript
Raw Permalink Normal View History

2018-01-23 13:07:50 -07:00
import { detectLanguage } from "./i18n";
2019-04-02 13:59:37 -06:00
import I from "i18next";
2018-01-24 08:45:26 -07:00
import { noop } from "lodash";
2018-01-23 13:07:50 -07:00
2018-01-23 14:27:24 -07:00
export async function revertToEnglish() {
2019-04-02 13:59:37 -06:00
I.init(await detectLanguage("en"), noop);
2018-01-23 13:07:50 -07:00
}