Skip to content

Commit

Permalink
Improve upgrade guide
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed Sep 20, 2024
1 parent 8d18205 commit fdf88f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/upgrading/v0.1.0-rc.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ In your `mix.exs` file, update the `:gettext` dependency to at least `~> 0.26`:
]
```

Then in your application Gettext module change it to use the new `Gettext.Backend` module:
Then change your application's `Gettext` module to use the new `Gettext.Backend` module:

```elixir
defmodule MyAppWeb.Gettext do
use Gettext.Backend, otp_app: :my_app_web
end
```

__Change the names accordingly, the only change needed here is adding the `.Backend` suffix.__
_Change the names accordingly, the only change needed here is adding the `.Backend` suffix._

And now in every place you used to `import MyAppWeb.Gettext`, just replace with `use Gettext, backend: MyAppWeb.Gettext`

Expand Down

0 comments on commit fdf88f7

Please sign in to comment.