Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

No changes reflected in json after rails boot #2

Open
eelkevdbos opened this issue Jan 14, 2022 · 1 comment
Open

No changes reflected in json after rails boot #2

eelkevdbos opened this issue Jan 14, 2022 · 1 comment

Comments

@eelkevdbos
Copy link

eelkevdbos commented Jan 14, 2022

Using the following config:

translations:
  - file: app/assets/locales/:locale/application.json
    patterns:
      - "*"
      - "!admin*"
      - "!rails*"

Initial translations are generated correctly using

$ I18nJSON.call(config_file: "config/i18n.yml")

However, subsequent changes to a locale file (in config/locales) do not change the json output. Even weirder, when I completely remove the json files previously outputted and reinvoke I18nJSON.call the old/original json is again generated. The same behavior holds for I18nJSON.listen.

Important: Rebooting rails and or starting a new rails console session does trigger actual changes, but only once for that session.

@fnando
Copy link
Owner

fnando commented Jan 14, 2022

Hey!

I merged this repo into https://github.com/fnando/i18n-js/tree/v4, and this particular bug has been fixed on that branch.

Can you please replace i18n-json with i18n-js v4 and follow that one readme instead?

To avoid any further confusion, I'll archive this repo. Sorry for the trouble!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants