An astro integration of i18next + some utility components to help you translate your astro websites!
521
stars
37
forks
source link
Disable 'missing translation key' for default locale when using text as keys #164
Open
paulathevalley opened 1 year ago
Is your feature request related to a problem? Please describe.
When using text as keys for the default locale, this particular log to the console becomes very noisy: https://github.com/yassinedoghri/astro-i18next/blob/beta/src/utils.ts#L59-L62
public/locales/en/translation.json
public/locales/es/translation.json
console:
Describe the solution you'd like
Is it possible to disable the
WARNING(astro-i18next): missing translation key
logging for the default locale?Describe alternatives you've considered
Related issues: https://github.com/i18next/i18next/issues/1634#issuecomment-907651713 https://github.com/i18next/react-i18next/issues/1534
Is it possible to use this approach (using text as keys for default locale) without a noisy console?
thank you for your time