Skip to content

Commit df52d8d

Browse files
Merge branch 'main' of github.com:ardanlabs/gotour
2 parents 6c1cd55 + 9bdcdc7 commit df52d8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/tour/tour.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
- _content/tour/[new_lang_code]/static/js/values.js: Replace the table of contents with the translated content for the new language.
2020
2121
4. Modify Template:
22-
- _content/tour/[new_lang_code]/template/index.tmpl: Add the new language option to the language selection dropdown. Repeat this step in each language folder's template file.
22+
- _content/tour/[new_lang_code]/template/*.tmpl : Replace all entries containing `tour/eng` with `tour/[new_lang_code]`.
23+
- _content/tour/[new_lang_code]/template/index.tmpl:42 : Translate the title to the new language.
24+
- _content/tour/[new_lang_code]/template/index.tmpl:71 : Add the new language option to the language selection dropdown. Repeat this step in each language folder's template file.
2325
2426
## Testing
2527
- After completing the above steps, thoroughly test the new language integration to ensure that all aspects function correctly and the content appears as expected.

0 commit comments

Comments
 (0)