package.cjs.configs.scripts.remove-unused-translation-keys.constants.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
const I18NEXT_PLURALS = ["zero", "one", "two", "few", "many", "other"];
/*
Matches the following:
- t(`some.${key}`), t(key), t(getKey()), t(key, { count: 1 })
- i18nKey={`some.${key}`}, i18nKey={key}, i18nKey={getKey()}
*/
const INTERPOLATED_TRANSLATION_KEY_REGEX =
/(?