From 9958e90eb5eb5a2cc171c40860745e95a96bd429 Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Tue, 20 Dec 2022 02:19:42 +0000 Subject: Actually do not prefix folders with nola_ refs T77 --- lib/web/gettext.ex | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/web/gettext.ex (limited to 'lib/web/gettext.ex') diff --git a/lib/web/gettext.ex b/lib/web/gettext.ex new file mode 100644 index 0000000..a43cb0d --- /dev/null +++ b/lib/web/gettext.ex @@ -0,0 +1,24 @@ +defmodule NolaWeb.Gettext do + @moduledoc """ + A module providing Internationalization with a gettext-based API. + + By using [Gettext](https://hexdocs.pm/gettext), + your module gains a set of macros for translations, for example: + + import NolaWeb.Gettext + + # Simple translation + gettext "Here is the string to translate" + + # Plural translation + ngettext "Here is the string to translate", + "Here are the strings to translate", + 3 + + # Domain-based translation + dgettext "errors", "Here is the error message to translate" + + See the [Gettext Docs](https://hexdocs.pm/gettext) for detailed usage. + """ + use Gettext, otp_app: :nola +end -- cgit v1.2.3