⚡️ locale use logger
This commit is contained in:
parent
b5dc34e872
commit
85e17a8a03
1 changed files with 4 additions and 6 deletions
|
@ -1,12 +1,10 @@
|
|||
import otaClient, { LanguageStrings } from "@crowdin/ota-client";
|
||||
import i18next from "i18next";
|
||||
import otaClient, { LanguageStrings } from "@crowdin/ota-client";
|
||||
|
||||
import logger from "@logger";
|
||||
|
||||
const client = new otaClient("ffd2068395f215046cc01f8lfji");
|
||||
|
||||
export interface translation {
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
export default async () => {
|
||||
//load needed information from Crowdin distribution
|
||||
const languages = await client.listLanguages();
|
||||
|
@ -24,5 +22,5 @@ export default async () => {
|
|||
resources,
|
||||
});
|
||||
//i18next now can be used to translate your application
|
||||
console.log(i18next.store.data);
|
||||
logger.silly(i18next.store.data);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue