Skip to content

Commit

Permalink
Update instructions in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Aug 19, 2024
1 parent 1ec048c commit 968d85e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ Documentation for `Gettext` is [available on Hex][docs-gettext].

## Usage

To use Gettext, define a Gettext module:
To use Gettext, define a **Gettext backend**:

```elixir
defmodule MyApp.Gettext do
use Gettext, otp_app: :my_app
use Gettext.Backend, otp_app: :my_app
end
```

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`:

```elixir
import MyApp.Gettext
use Gettext, backend: MyApp.Gettext

# Simple message
gettext("Here is one string to translate")
Expand Down

0 comments on commit 968d85e

Please sign in to comment.