Browse Source

docs(module/toxic-swamp): add automatic language selection feature

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

+ 20
- 1
docs/content/module/toxic-swamp.md View File

@@ -71,6 +71,7 @@ General:
71 71
 - Incentivize yourself to keep your software up-to-date and secure
72 72
 - Build user trust with transparent metrics and control mechanisms
73 73
 - Protect users by obfuscating their IP with included proxy server
74
+- Automatically selects the most appropriate language for the user
74 75
 
75 76
 Interface:
76 77
 
@@ -80,7 +81,6 @@ Interface:
80 81
 - Detailed status messages
81 82
 - One-click on/off setting
82 83
 - Accessible user controls
83
-- Easily translate content
84 84
 
85 85
 Behavior:
86 86
 
@@ -585,6 +585,25 @@ 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
589
+
590
+Toxic Swamp provides English and Bahasa Indonesia translations. Language selection is automatic based on the document HTML `lang` attribute, e.g.
591
+
592
+```html
593
+<html lang="id-ID"><!-- Use Bahasa Indonesia -->
594
+<html lang="en-US"><!-- Use Yankee English -->
595
+```
596
+
597
+To adjust, simply update `languageCode` in your After Dark site config:
598
+
599
+```toml
600
+languageCode = "id-ID" # Controls site language
601
+```
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.
604
+
605
+See [Custom Layouts](/feature/custom-layouts/) for help overriding.
606
+
588 607
 ---
589 608
 
590 609
 <small class="muted" id="mining-footnote"><sup>†</sup> Estimate assumes 50%  {{< external href="https://coinhive.com/info/faq#rev-share" text="non-negotiable" />}} Coinhive mining fee compared with 0% for {{< external href="https://moneroocean.stream/?dark#/help/faq" text="MoneroOcean" />}} and excludes optional donation, hashrate variance, uptime, withdrawal fees and optimizations. <a href="#footnote-return">↩</a></small>

Loading…
Cancel
Save