gettext
gettext copied to clipboard
Internationalization and localization support for Elixir.
Should this be the default behavior or hidden behind a flag?
Expo supports parsing / writing `.mo` files, which are a lot faster to read since it is a simple binary format. I would like to support it here as well....
Currently the default implementation fallback to msgid if the translation for a language is missing. However, in many cases, we would want the user to choose a fallback language, so...
## Proposed Solution * Leave default implementation as is * Allow plugging in a custom pluralization module (already possible) * Extend `Gettext.Plural` - The plural forms header should be passed...
Closes #280. Since I don't think it makes sense to use `defoverridable` if this is meant to be part of the core, I changed from using `super` to just renaming...
Hi! Hope you're well. I and my team recently thought about integrating gettext with the database as a persistence point; unfortunately, we've stumbled upon this topic on the elixir forum:...
When you run `mix gettext.extract` from umbrella root not every module is forced to recompile, which causes translations to disappear. Example repo: https://github.com/amatalai/gettext_umbrella_issue Probably somehow related to #165
When I run `mix gettext.extract --merge` on my umrella project, I get a LOT of warnings saying: ``` warning: redefining module Core.Reports.ReportThree.Report (current version loaded from /_build/dev/lib/core/ebin/Elixir.Core.Reports.ReportThree.Report.beam) lib/core/reports/report_three.ex:24 ``` Even...
Continued discussion of https://github.com/elixir-gettext/gettext/issues/317#issuecomment-1356450733 Removing the compile time dependency to the gettext backend module could speed up compile performance of larger apps considerably. This has an even bigger impact when...
Now that we cleaned up the compilation, I thought it would be interesting to compare the `.po` / `.mo` performance. ### Script https://github.com/elixir-gettext/gettext/blob/846cac137f7764101d734ff8f8c9ed30c4d64dda/performance_test.exs ### Gettext Files I've used the translation...