mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
8006cce4b0
* Polish translation added. * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Pаramtamtām <7326800+tarampampam@users.noreply.github.com>
24 lines
1.5 KiB
Markdown
24 lines
1.5 KiB
Markdown
# 🔤 Localization
|
|
|
|
[![jsDelivr hits](https://img.shields.io/jsdelivr/gh/hm/tarampampam/error-pages)](https://www.jsdelivr.com/package/gh/tarampampam/error-pages)
|
|
|
|
This directory contains file [l10n.js](l10n.js) for the error pages localization. The working logic is very simple - pages load this script using [jsdelivr.com](https://www.jsdelivr.com/) as a CDN for [versioned content from the GitHub repository](https://www.jsdelivr.com/features#gh), 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](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (column `639-1`)
|
|
- Make a fork of this repository
|
|
- Edit file [l10n.js](l10n.js) in `data` section (append new localized strings) using locale name from the step 1
|
|
- Make a PR with your changes
|
|
|
|
## 👍 Translators
|
|
|
|
- 🇫🇷 French by [@jvin042](https://github.com/jvin042)
|
|
- 🇵🇹 Portuguese by [@fabtrompet](https://github.com/fabtrompet)
|
|
- 🇳🇱 Dutch by [@SchoNie](https://github.com/SchoNie)
|
|
- 🇩🇪 German by [@mschoeffmann](https://github.com/mschoeffmann)
|
|
- 🇪🇸 Spanish by [@Runig006](https://github.com/Runig006)
|
|
- 🇨🇳 Chinese by [@CDN18](https://github.com/CDN18)
|
|
- 🇮🇩 Indonesian by [@getwisp](https://github.com/getwisp)
|
|
- 🇵🇱 Polish by [@wielorzeczownik](https://github.com/wielorzeczownik)
|