️ locale use logger

This commit is contained in:
Axel Olausson Holtenäs 2022-04-22 15:15:10 +02:00
parent b5dc34e872
commit 85e17a8a03
No known key found for this signature in database
GPG key ID: 7BF6826B76382CBA

View file

@ -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);
};