You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,10 +124,9 @@ Use any variable names, only the argument order matters. Remember that they don
124
124
125
125
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:
126
126
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.
131
130
132
131
A link to the opposite language page will now appear in the head.
0 commit comments