Skip to content

Instantly share code, notes, and snippets.

@honzabilek4
Created February 3, 2021 10:04
Show Gist options
  • Save honzabilek4/9a3666c8e273433466b07379c6a33e13 to your computer and use it in GitHub Desktop.
Save honzabilek4/9a3666c8e273433466b07379c6a33e13 to your computer and use it in GitHub Desktop.
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