-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "unmatched close parenthesis" (compile_key_pattern) when running i18n-tasks health
#180
Comments
Can you post your config/i18n-tasks.yml? |
@glebm Sure! config/i18n-tasks.yml base_locale: en
data:
read:
- config/locales/**/%{locale}.yml
- config/locales/**/*.%{locale}.yml
search:
exclude:
- app/assets/images
- app/assets/fonts My locale files:
|
@glebm hi there. Any clue how to fix it? Thanks 😄 |
Looks like there is a dynamic key usage in the code with a key that looks something like below that i18n-tasks has trouble with: t('landing_pages.index.footer-#{stuff}_version') Can you post the exact code of that usage here? Thanks |
Yep, this the part of my haml where I'm using it:
|
Looks like that's not the key that's causing the issue. Could you perhaps inspect the output of: i18n-tasks find --no-strict You can use the command below to see just the keys: i18n-tasks find --no-strict -fkeys and see if there is anything fishy in there? |
Sure!
|
Thanks! The commit above should fix it. |
It worked, thanks a lot! 😄 |
@glebm could you please bump a new version? Thanks again! |
@lucascaton Released in v0.9.3. |
@glebm thanks! |
When I run
$ i18n-tasks health
, I got this result:The text was updated successfully, but these errors were encountered: