diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7e01d2d..8d8d2d5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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` diff --git a/i18n/en/common.json b/i18n/en/common.json index 20a8b88..195dac4 100644 --- a/i18n/en/common.json +++ b/i18n/en/common.json @@ -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" } \ No newline at end of file