We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ec048c commit 968d85eCopy full SHA for 968d85e
1 file changed
README.md
@@ -22,18 +22,18 @@ Documentation for `Gettext` is [available on Hex][docs-gettext].
22
23
## Usage
24
25
-To use Gettext, define a Gettext module:
+To use Gettext, define a **Gettext backend**:
26
27
```elixir
28
defmodule MyApp.Gettext do
29
- use Gettext, otp_app: :my_app
+ use Gettext.Backend, otp_app: :my_app
30
end
31
```
32
33
-and invoke the Gettext API, which consists of the `*gettext` macros:
+and invoke the Gettext API, which consists of the `*gettext` macros that get imported if you `use Gettext`:
34
35
36
-import MyApp.Gettext
+use Gettext, backend: MyApp.Gettext
37
38
# Simple message
39
gettext("Here is one string to translate")
0 commit comments