error-pages/l10n
2022-03-28 15:11:44 +05:00
..
l10n.js Error pages now translated in 🇫🇷 (#82) 2022-03-28 15:11:44 +05:00
readme.md Translated in 🇺🇦 and 🇷🇺 languages (#80) 2022-03-24 00:31:34 +05:00

Localization

jsDelivr hits

This directory contains file l10n.js for the error pages localization. The logic is very simple - pages load this file using jsdelivr.com as a CDN for versioned content from the GitHub repository, and the script from this file translate tags content using 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