Skip to content

Commit

Permalink
Update i18next migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Laské committed Aug 12, 2023
1 parent d1f9d83 commit d170997
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/i18nmigrationguide/guide_vanillajs.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ Brief explanation of methods:

- `triggerLocalizedEvent()`: Triggers a custom event named "localized" by creating a new event object and dispatching it on the `window` object. This event can be used by other parts of the application to respond to localization changes.

## Step4: Modify the js/activity.js
## Step4: Modify reference to webl10n in the code
Now you need to replace the webl10n code with i18next.

You should update at least the file js/activity.js but references to webl10n in other js files in the activity should be updated as well.

You can refer to this [code](https://github.com/llaske/sugarizer/pull/1371/files#diff-b2447869bafe96b01d12ef5db78589d5a1aa490d31188e694300e3f674211d7fR3) and spin up a similar instance.

## Step5: Remove webl10n reference from sugarweb
Expand Down

0 comments on commit d170997

Please sign in to comment.