eventonight/Translate i18n Files

Automatically translate JS/TS localization files with Python and deep-translator

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
sourceSource language code (e.g., en)yes
targetsComma-separated target languages (e.g., it,fr)yes
input_filePath to the JS/TS file to translate (e.g., i18n/locale)yes
previous_headGit commit hash to compare changes againstno${{ github.event.before }}
current_headCurrent Git commit hashno${{ github.sha }}
evaluate_changesCheck if input file has changes respect to the previous head before translatingnotrue
github_tokenGitHub token for authenticationno${{ github.token }}
node_versionNode.js version to use (default 20)no20
npm_working_directoryPath to the folder where npm commands should runno.
pre_commit_npm_commandOptional npm command to run pre-commit (e.g. 'lint' or 'lint:fix')no""
commit_messageCommit message for the translation changesnochore(i18n): auto-translate i18n files [skip ci]
check_onlyIf true, only check that all translation keys are present without translating or committing. Fails if any key is missing.nofalse

no outputs