Skip to content

Commit 968d85e

Browse files
committed
Update instructions in the README
1 parent 1ec048c commit 968d85e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ Documentation for `Gettext` is [available on Hex][docs-gettext].
2222

2323
## Usage
2424

25-
To use Gettext, define a Gettext module:
25+
To use Gettext, define a **Gettext backend**:
2626

2727
```elixir
2828
defmodule MyApp.Gettext do
29-
use Gettext, otp_app: :my_app
29+
use Gettext.Backend, otp_app: :my_app
3030
end
3131
```
3232

33-
and invoke the Gettext API, which consists of the `*gettext` macros:
33+
and invoke the Gettext API, which consists of the `*gettext` macros that get imported if you `use Gettext`:
3434

3535
```elixir
36-
import MyApp.Gettext
36+
use Gettext, backend: MyApp.Gettext
3737

3838
# Simple message
3939
gettext("Here is one string to translate")

0 commit comments

Comments
 (0)