Skip to content

Commit 4746946

Browse files
fix: update readme by removing step that isn't needed for common use case
1 parent 43b4a9d commit 4746946

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ Use any variable names, only the argument order matters. Remember that they don
124124

125125
The most common use case is probably that a translated page can be reached by simply adding the query parameter `l`, with a language key like `en`. To achieve this, follow these steps:
126126

127-
1. Include the style from KTH Style, `@use '~@kth/style/scss/components/translation-panel';`
128-
2. Include the handlebars helper in the header partials template, `{{{languageLink lang}}}`
129-
3. Add `language_link_lang_sv: 'Svenska'` and `language_link_lang_en: 'English'` to `messages.en.js` and `messages.sv.js` respectively
130-
4. Verify that `lang` is passed to `render` in the controller.
127+
1. Include the handlebars helper in the header partials template, `{{{languageLink lang}}}`
128+
2. Add `language_link_lang_sv: 'Svenska'` and `language_link_lang_en: 'English'` to `messages.en.js` and `messages.sv.js` respectively
129+
3. Verify that `lang` is passed to `render` in the controller.
131130

132131
A link to the opposite language page will now appear in the head.
133132

0 commit comments

Comments
 (0)