1 defmodule Pleroma.Web.Gettext do
3 A module providing Internationalization with a gettext-based API.
5 By using [Gettext](https://hexdocs.pm/gettext),
6 your module gains a set of macros for translations, for example:
8 import Pleroma.Web.Gettext
11 gettext "Here is the string to translate"
14 ngettext "Here is the string to translate",
15 "Here are the strings to translate",
18 # Domain-based translation
19 dgettext "errors", "Here is the error message to translate"
21 See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage.
23 use Gettext, otp_app: :pleroma