error-pages/l10n/readme.md
Matthias Schöffmann 01c2a37055
Add 🇩🇪 German translation (#115)
* german translation

* update readmes and changelog
2022-06-04 17:06:39 +05:00

1.2 KiB

🔤 Localization

jsDelivr hits

This directory contains file l10n.js for the error pages localization. The working logic is very simple - pages load this script using jsdelivr.com as a CDN for versioned content from the GitHub repository, and it translates tag content with the special HTML attribute data-l10n.

By default, pages markup contains strings in English (en locale). If you want to localize the error pages on the different locales, you should:

  • Find your locale name on this page (column 639-1)
  • Make a fork of this repository
  • Edit file l10n.js in data section (append new localized strings) using locale name from the step 1
  • Make a PR with your changes

👍 Translators