generated from imranbarbhuiya/package-template
-
-
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
1fbab2c
commit 41f3156
Showing
10 changed files
with
160 additions
and
103 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,79 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"config": { | ||
"type": "string", | ||
"default": "./i18n-validate.json", | ||
"description": "Path to the config file" | ||
}, | ||
"exclude": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { "type": "string" } | ||
}, | ||
{ "type": "string" } | ||
], | ||
"default": "**/node_modules/**", | ||
"description": "Exclude files from parsing" | ||
}, | ||
"exitOnError": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "Exit immediately if an error is found" | ||
}, | ||
"functions": { | ||
"type": "array", | ||
"items": { "type": "string" }, | ||
"default": ["t", "i18next.t", "i18n.t"], | ||
"description": "Names of the translation function" | ||
}, | ||
"inputs": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { "type": "string" } | ||
}, | ||
{ "type": "string" } | ||
], | ||
"default": "**/*.{js,jsx,ts,tsx}", | ||
"description": "Glob pattern to match input files" | ||
}, | ||
"keySeparator": { | ||
"type": "string", | ||
"default": ".", | ||
"description": "Key separator for nested translation keys" | ||
}, | ||
"sourceLang": { | ||
"type": "string", | ||
"default": "en", | ||
"description": "The source language of the translation keys" | ||
}, | ||
"localeFolder": { | ||
"type": "string", | ||
"default": "i18n", | ||
"description": "Path to translation files" | ||
}, | ||
"localePath": { | ||
"type": "string", | ||
"default": "{{lng}}/{{ns}}.json", | ||
"description": "Path to translation files. You can use `{{lng}}` for language and `{{ns}}` for namespace" | ||
}, | ||
"logLevel": { | ||
"type": "string", | ||
"default": "info", | ||
"description": "Log level" | ||
}, | ||
"nsSeparator": { | ||
"type": "string", | ||
"default": ":", | ||
"description": "Namespace separator for translation keys" | ||
}, | ||
"nsFolderSeparator": { | ||
"type": "string", | ||
"default": "/", | ||
"description": "Folder separator for translation keys" | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -31,6 +31,11 @@ | |
"i18next", | ||
"i18next-lint" | ||
], | ||
"dependencies": { | ||
"commander": "^11.0.0", | ||
"glob": "^10.3.3", | ||
"typescript": "^5.1.6" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.6.6", | ||
"@commitlint/config-conventional": "^17.6.6", | ||
|
@@ -48,7 +53,6 @@ | |
"pinst": "^3.0.0", | ||
"prettier": "^3.0.0", | ||
"tsup": "^7.1.0", | ||
"typescript": "^5.1.6", | ||
"vitest": "^0.33.0" | ||
}, | ||
"files": [ | ||
|
@@ -80,10 +84,5 @@ | |
"ansi-regex": "^5.0.1", | ||
"minimist": "^1.2.8" | ||
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"commander": "^11.0.0", | ||
"glob": "^10.3.3", | ||
"is-ci": "^3.0.1" | ||
} | ||
"packageManager": "[email protected]" | ||
} |
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
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
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
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
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.