Initial Phoenix generated project.

This commit is contained in:
codevictory
2021-03-27 14:29:16 +02:00
parent 44e96d9755
commit 299b47ca56
49 changed files with 20471 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
defmodule RunosaariWeb.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 RunosaariWeb.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: :runosaari
end