Skip to content

Commit

Permalink
Update contributors guide
Browse files Browse the repository at this point in the history
  • Loading branch information
dlford committed Oct 18, 2023
1 parent 2a762ec commit c44091b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 43 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ Adding a language does not require adding every translation for the entire app,
1. See [Getting Started](#getting-started) to create a fork and a new branch based on the `dev` branch
2. Create a directory at `i18n/{short-language-code}/`, use a [language code or LCID string](https://wiki.freepascal.org/Language_Codes) for the directory name
3. Create the namespace JSON files to match the `en` directory
- `en/common.json` also includes translations for each language (e.g. `"en": "English"`), these don't need to be translated, as they are already in the native language.
- Add the new language to `en/common.json` with the key being short language code, and the value being the name of the language in that language.
4. Add the translated text to each namespace file
5. Add the locale language code or LCID string from step 2 to `next-i18next.config.js`
Expand Down
87 changes: 44 additions & 43 deletions i18n/en/common.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
{
"am": "አማርኛ",
"bn": "বাংলা",
"de": "Deutsch",
"en": "English",
"es": "Español",
"hi": "हिन्दी",
"it": "Italiano",
"ja": "日本語",
"pl": "Polski",
"pt": "Português",
"sw": "Kiswahili",
"vi": "Tiếng Việt",
"shortTitle": "Dev Tools",
"longTitle": "Developer Tools",
"sponsors": "Sponsors",
"becomeASponsor": "Become a Sponsor",
"contributors": "Contributors",
"copy": "COPY",
"paste": "PASTE",
"clear": "CLEAR",
"copiedToClipboard": "Copied to clipboard",
"failedToCopyToClipboard": "Failed to copy to clipboard!",
"searchTools": "Search Tools",
"search": "Search...",
"home": "Home",
"aspectRatio": "Aspect Ratio",
"base64": "Base64",
"colors": "Colors",
"css": "CSS",
"html": "HTML",
"htmlCharCodes": "HTML Char Codes",
"imageConverter": "Image Converter",
"json": "JSON",
"loremIpsum": "Lorem Ipsum",
"markdownPreview": "Markdown Preview",
"queryString": "Query String",
"regexTester": "Regex Tester",
"textDiff": "Text Diff",
"urlEncode": "URL Encode",
"uuid": "UUID",
"caseConverter": "Case Converter",
"charCounter": "Char Counter",
"totp": "TOTP"
"am": "አማርኛ",
"bn": "বাংলা",
"de": "Deutsch",
"en": "English",
"es": "Español",
"hi": "हिन्दी",
"it": "Italiano",
"ja": "日本語",
"pl": "Polski",
"pt": "Português",
"sw": "Kiswahili",
"vi": "Tiếng Việt",
"uk": "Українська",
"shortTitle": "Dev Tools",
"longTitle": "Developer Tools",
"sponsors": "Sponsors",
"becomeASponsor": "Become a Sponsor",
"contributors": "Contributors",
"copy": "COPY",
"paste": "PASTE",
"clear": "CLEAR",
"copiedToClipboard": "Copied to clipboard",
"failedToCopyToClipboard": "Failed to copy to clipboard!",
"searchTools": "Search Tools",
"search": "Search...",
"home": "Home",
"aspectRatio": "Aspect Ratio",
"base64": "Base64",
"colors": "Colors",
"css": "CSS",
"html": "HTML",
"htmlCharCodes": "HTML Char Codes",
"imageConverter": "Image Converter",
"json": "JSON",
"loremIpsum": "Lorem Ipsum",
"markdownPreview": "Markdown Preview",
"queryString": "Query String",
"regexTester": "Regex Tester",
"textDiff": "Text Diff",
"urlEncode": "URL Encode",
"uuid": "UUID",
"caseConverter": "Case Converter",
"charCounter": "Char Counter",
"totp": "TOTP"
}

0 comments on commit c44091b

Please sign in to comment.