This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
forked from i18nlaurel/Web3-Glossary
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aeff8ae
commit 057371b
Showing
27 changed files
with
7,958 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
input: ['src/**/*.{js,jsx}'], // Specify the input files to scan | ||
output: 'src/i18n/locales/', // Specify the output directory for the translation files | ||
options: { | ||
debug: true, // Enable debugging | ||
removeUnusedKeys: false, // Remove unused translation keys | ||
func: { | ||
list: ['i18next.t', 'i18n.t'], // List of functions to scan for translation keys | ||
extensions: ['.js', '.jsx'] // File extensions to scan | ||
}, | ||
lngs: ['en', 'es', 'ar', 'de', 'fr', 'id', 'it', 'ja', 'ko', 'nl', 'pt-br', 'ru', 'th', 'tl', 'tr', 'uk', 'vi', 'zh-cn'], // List of languages to generate translation files for | ||
ns: ['translation'], // Namespace to use for translation keys | ||
defaultLng: 'en', // Default language | ||
resource: { | ||
loadPath: 'src/i18n/locales/{{lng}}/{{ns}}.json', // Path to load existing translation files | ||
savePath: 'src/i18n/locales/{{lng}}/{{ns}}.json', // Path to save updated translation files | ||
jsonIndent: 2 // Indentation for the JSON files | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.