I finished off Hanami’s streamlined i18n support this week! I had built the core functionality quite a while ago, and thought that adding view helpers would be a cakewalk. In the end, this turned out to be another 80% after the first 80%.So this week, I: reimplemented I18n’s #localize so it can respect slice isolation, bundled English language defaults available via a new shared_load_path setting, added i18n view helpers, tracked the currently-rendering template in Hanami View, used this to add relative i18n key lookup in view helpers, added i18n helpers to actions as well, and then finally, added i18n to the Gemfile and generated placeholder en.yml files in new apps. That’s one big cake to walk, but I hope it will be a delicious end result. Paweł merged a setting to configure the log level for Hanami’s DB logs, and we hashed out a plan to keep the production logs leaner: by default, DB logs will have the :debug severity level, while in production, the app logger will log at :info…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.