This file contains hidden or 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
//… | |
export const getKeyPlural = (key, count) => { | |
const currentLanguage = LocalazyMeta.languages.find(l => l.language === i18next.language); | |
const pluralType = currentLanguage.pluralType(+count); | |
return `${key}.${pluralType}`; | |
} | |
//… |
This file contains hidden or 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))}`; |
This file contains hidden or 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 createLanguageSelector = () => { | |
let template = '<select id="selector">'; |
This file contains hidden or 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
https://www.conventionalcommits.org/en/v1.0.0/ | |
feat: add hat wobble | |
^--^ ^------------^ | |
| | | |
| +-> Summary in present tense. | |
| | |
+-------> Type: chore, docs, feat, fix, refactor, style, or test. |
OlderNewer