Browse Source

docs(module/toxic-swamp): add updated language settings

Josh Habdas 11 months ago
parent
commit
525ef8c570
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 19 additions and 5 deletions
  1. 19
    5
      docs/content/module/toxic-swamp.md

+ 19
- 5
docs/content/module/toxic-swamp.md View File

@@ -585,24 +585,38 @@ If you're using [The Fire Swamp](#the-fire-swamp) with a configured payout addre
585 585
 
586 586
 See the MoneroOcean {{< external href="https://moneroocean.stream/?dark#/help/faq" text="FAQ" />}} for more details.
587 587
 
588
-## Language Selection
588
+## Internationalization
589 589
 
590
-Toxic Swamp provides English and Bahasa Indonesia translations. Language selection is automatic based on the document HTML `lang` attribute, e.g.
590
+Toxic Swamp provides English and Bahasa Indonesia translations. Language selection is automatic based on the document's HTML `lang` attribute:
591 591
 
592 592
 ```html
593 593
 <html lang="id-ID"><!-- Use Bahasa Indonesia -->
594 594
 <html lang="en-US"><!-- Use Yankee English -->
595 595
 ```
596 596
 
597
-To adjust, simply update `languageCode` in your After Dark site config:
597
+And may be adjusted by updating the `languageCode` from site config:
598 598
 
599 599
 ```toml
600 600
 languageCode = "id-ID" # Controls site language
601 601
 ```
602 602
 
603
-If the language you're attempting to use isn't already provided you may update or override the module `inline.jsonld.html` within your site to add it.
603
+### Customizing
604 604
 
605
-See [Custom Layouts](/feature/custom-layouts/) for help overriding.
605
+Add or remove translations from `inline.jsonld.html` in your site `layouts` directory. If the file doesn't exist yet, copy it from module default:
606
+
607
+```sh
608
+mkdir -p layouts/partials/modules/toxic-swamp/ && \
609
+cp themes/toxic-swamp/layouts/partials/modules/toxic-swamp/inline.jsonld.html $_
610
+```
611
+
612
+{{% hackcss-alert type="info" %}}**Tip:** See [Custom Layouts](/feature/custom-layouts/) for help customizing your layouts.{{% /hackcss-alert %}}
613
+
614
+And adjust their availability using the `translations` setting in site config:
615
+
616
+```toml
617
+[params.modules.toxic_swamp]
618
+  translations = ["id", "es"] # optional, specifies English translations available
619
+```
606 620
 
607 621
 ---
608 622
 

Loading…
Cancel
Save