Invalid Format: Uncaught SyntaxError due to translations

How to check locale files for errors has all the answers.

$ rake i18n:check[bg]

================================================================================
config/locales/client.bg.yml
================================================================================
js.about.contact_info -- Missing interpolation keys: ["contact_info"]
js.about.contact_info -- Unsupported interpolation keys: ["contact_email"]
admin_js.admin.backups.operations.failed -- Missing interpolation keys: ["operation"]
js.topic.read_more_MF -- Invalid message format: Uncaught SyntaxError: Expected "=", "}" or [a-zA-Z$_] but "%u043F" found.

================================================================================
config/locales/server.bg.yml
================================================================================
education.new-topic -- Missing interpolation keys: ["base_path"]
dashboard.rails_env_warning -- Missing interpolation keys: ["env"]
user_notifications.posted_by -- Missing interpolation keys: ["username"]

You should take a closer look at the translation for js.topic.read_more_MF and fix it on Transifex, so that everyone profits from your work.

5 Likes