All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.configs.scripts.remove-unused-translation-keys.constants.js Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
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 =
  /(?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy