Gleb Mazovetskiy

Results 440 comments of Gleb Mazovetskiy

JRuby added to the test suite in https://github.com/glebm/i18n-tasks/commit/2a9a9e0d4803b30b7c1353d4d63357aaa251302d

Yeah, there is no longer any special handling for these keys (because the previous heuristic missed some legitimate non-plural keys). One option to improve this in `i18n-tasks` would be to...

I am assuming you have `foo.other` defined in `en` but not `ja`, right?

How're you using this key (the `t(...)` call)?

Sounds like a bug either in i18n-tasks or in easy_translate. Perhaps you can print out the values being passed around in https://github.com/glebm/i18n-tasks/blob/main/lib/i18n/tasks/translators/base_translator.rb to debug this?

`#StandWithUkraine` is printed to `stderr`, while the json is printed to `stdout`. This works just fine for me: ```console $ i18n-tasks data --format json | jq ".en.i18n_tasks.add_missing.added.one" ``` I think...

This is a Docker bug, not an i18n-taska one, but good news is that it seems you can simply drop the `-t` flag from your `docker run` command. https://github.com/moby/moby/issues/725#issuecomment-494444778

Adapters are responsible for (de)serialization but the keys themselves are routed to files by a Router There are a couple of built-in routers: https://github.com/glebm/i18n-tasks/tree/main/lib/i18n/tasks/data/router `conservative_router` tries to keep the keys...

According to rails code, the key is always scoped to `#{controller_path.tr('/', '.')}.#{action_name}`: https://github.com/rails/rails/blob/179b979ddbb7bcc4d1a12d0d71779f47c1c9d9cd/actionpack/lib/abstract_controller/translation.rb#L7-L22 If I understand the above correctly, this relative key is actually 2 keys: ``` things.update.not_authorized things.destroy.not_authorized ```...

The `pattern_router` is based on key names. So you map key patterns to files. If you want to simply keep the keys where they are, use `conservative_router`. See https://github.com/glebm/i18n-tasks#multiple-locale-files