Packages
A tool for pseudolocalizing Gettext translations in Elixir applications. Helps identify hardcoded strings, character encoding issues, and UI problems by converting ASCII characters to similar-looking Unicode characters with text expansion simulation.
Current section
Files
Jump to
Current section
Files
lib/plural.ex
defmodule GettextPseudolocalize.Plural do
@behaviour Gettext.Plural
def nplurals("xx"), do: 2
def plural("xx", 1), do: 0
def plural("xx", _), do: 1
# Fall back to Gettext.Plural
defdelegate nplurals(locale), to: Gettext.Plural
defdelegate plural(locale, n), to: Gettext.Plural
end