[{"name":"GetText","comment":" This library allows you to internationalize (i18n) your Elm application using\n[GNU gettext](https://www.gnu.org/software/gettext/manual/gettext.html) MO/PO files.\n\n\n# Definition\n\n@docs Translations\n\n\n# Translation functions\n\n@docs t, tn, tp, tpn\n\n\n# Helpers\n\n@docs default, parser, getLanguage\n\n","unions":[{"name":"Translations","comment":" The translations for a specific language.\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"default","comment":" Create the default `Translations`. It defaults to language `en` and the English plural forms rules. It doesn't\ncontain any translations and will use the default text and pluralText specified by the `t*` functions.\n","type":"GetText.Translations"},{"name":"getLanguage","comment":" The language of the translations, in format `ll`, `ll_CC` or `ll_CC@variant` where:\n\n  - `ll` is an ISO 639 two-letter language code (lowercase)\n  - `CC` is an ISO 3166 two-letter country code (uppercase)\n  - `variant` is a variant designator (lowercase)\n\nSee the [Language header](https://www.gnu.org/software/gettext/manual/html_node/Header-Entry.html) for more info.\n\n","type":"GetText.Translations -> String.String"},{"name":"parser","comment":" Takes a binary [MO file](https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html) and parses the file so\nit can be used for translations.\n\nThe MO file is required to have a Language and Plural-Forms\n[header](https://www.gnu.org/software/gettext/manual/html_node/Header-Entry.html) so we can parse it.\n\n","type":"Bytes.Decode.Decoder GetText.Translations"},{"name":"t","comment":" Returns the translation of the given text and formats it with the given args. If the translation cannot be found the\ndefault text is returned.\n\nThe text can contain format items in format `{<name>}` where `<name>` can be letters, numbers and underscore.\nThe format items must have a unique name, if there are duplicates the last format item wins. If the format\nitem does not exist it will remain.\n\n    t translations \"Hello {name}\" [ ( \"name\", \"Jay\" ) ]\n\n    t translations \"Hello\" []\n\n","type":"GetText.Translations -> String.String -> List.List ( String.String, String.String ) -> String.String"},{"name":"tn","comment":" Returns the translation of the given text or pluralText based on passing amount n to the\n[plural-forms rule](https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html) for the\nlanguage and formats it with the given args. Note that it expects the default language to only have 2 plural forms, but\ntranslations can have any amount of plural forms. If the translation cannot be found the default text or pluralText is\nreturned.\n\nThe text and pluralText can contain format items in format `{<name>}` where `<name>` can be letters, numbers and\nunderscore. The format items must have a unique name. If there are duplicates the last format item wins. If the format\nitem does not exist it will remain.\n\n    tn translations 1 \"Apple\" \"Apples\" []\n\n    tn translations 1 \"{amount} apple\" \"{amount} apples\" [ ( \"amount\", \"1\" ) ]\n\n    tn translations 5 \"{amount} apple\" \"{amount} apples\" [ ( \"amount\", \"5\" ) ]\n\n","type":"GetText.Translations -> Basics.Int -> String.String -> String.String -> List.List ( String.String, String.String ) -> String.String"},{"name":"tp","comment":" Returns the translation of the given text and formats it with the given args. The context is used to indicate to the\ntranslator that text requires a particular translation. Only use contexts when the translation depends on the context\nsuch that the same text is normally only translated once. Note empty context is different from no context. If the\ntranslation cannot be found the default text is returned.\n\nThe text can contain format items in format `{<name>}` where `<name>` can be letters, numbers and underscore.\nThe format items must have a unique name, if there are duplicates the last format item wins. If the format\nitem does not exist it will remain.\n\n    tp translations \"person\" \"{name} is spoiled\" [ ( \"name\", \"Jay\" ) ]\n\n    tp translations \"food\" \"Spoiled\" []\n\n","type":"GetText.Translations -> String.String -> String.String -> List.List ( String.String, String.String ) -> String.String"},{"name":"tpn","comment":" Returns the translation of the given text or pluralText based on passing amount n to the\n[plural-forms rule](https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html) for the\nlanguage and formats it with the given args. Note that it expects the default language to only have 2 plural forms, but\ntranslations can have any amount of plural forms. If the translation cannot be found the default text or pluralText is\nreturned.\n\nThe context is used to indicate to the translator that text and pluralText require a particular translation. Only use\ncontexts when the translation depends on the context such that the same text is normally only translated once. Note\nempty context is different from no context.\n\nThe text and pluralText can contain format items in format `{<name>}` where `<name>` can be letters, numbers and\nunderscore. The format items must have a unique name. If there are duplicates the last format item wins. If the format\nitem does not exist it will remain.\n\n    tpn translations \"person\" 1 \"Is spoiled\" \"Are spoiled\" []\n\n    tpn translations \"food\" 1 \"{amount} is spoiled\" \"{amount} are spoiled\" [ ( \"amount\", \"1\" ) ]\n\n    tpn translations \"food\" 5 \"{amount} is spoiled\" \"{amount} are spoiled\" [ ( \"amount\", \"5\" ) ]\n\n","type":"GetText.Translations -> String.String -> Basics.Int -> String.String -> String.String -> List.List ( String.String, String.String ) -> String.String"}],"binops":[]}]