Releases: gamcoh/translations-checker
Releases · gamcoh/translations-checker
v0.1.9
Full Changelog: v0.1.8...v0.1.9
Fixed #2
When you have translations hooks or function in the file with some argument like so:
const Blog = async () => { // For instance a Next.js page
const t = await getTranslations("/page2");
Or :
const Blog = () => {
const { t } = useTranslation("/page");
The keys in the json file are going to look like this:
{
"/page2.some_key_found": "TODO"
Careful
If you have multiple hooks in one file this will through an error.
v0.1.8
Full Changelog: v0.1.7...v0.1.8
Initial Release
v0.1.0 Added configs so that this project can be used as a pre-commit hook