Created
February 3, 2021 10:04
-
-
Save honzabilek4/9a3666c8e273433466b07379c6a33e13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { i18n, initI18n, getLanguages, getCurrentLanguage, getKeyPlural as p } from "./i18n"; | |
let count = 0; | |
//… | |
const getTranslatedContent = () => { | |
return `${i18n.t("hello_localazy")}<br><br> | |
${count} ${i18n.t(p("calendar", count))}<br> | |
${count} ${i18n.t(p("field", count))}<br> | |
${count} ${i18n.t(p("event", count))}<br> | |
${count} ${i18n.t(p("title", count))}<br> | |
${count} ${i18n.t(p("color", count))}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment