chore(ci): add multiple language support for translation-changelog#61
Open
nevermarine wants to merge 9 commits intomainfrom
Open
chore(ci): add multiple language support for translation-changelog#61nevermarine wants to merge 9 commits intomainfrom
nevermarine wants to merge 9 commits intomainfrom
Conversation
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
Signed-off-by: Maksim Fedotov <maksim.fedotov@flant.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds bidirectional translation support to the
translate-changelogaction. The action now supports translating changelog files between English and Russian in both directions (en->ru and ru->en), with configurable file naming patterns.Key technical changes:
source_langandtarget_langinputs to specify translation directionfile_prefixinput for customizable file naming (e.g.,CHANGELOG-vorv)github_tokeninput for PR creation authenticationWhy do we need it, and what problem does it solve?
Previously, the action only supported Russian->English translation with hardcoded file patterns. This created several limitations:
v*.ymlpattern was hardcoded, couldn't work with different naming conventions likeCHANGELOG-v*.ymlfeatures:intoфункции:This update enables:
What is the expected result?
For Russian->English translation (default behavior):
For English->Russian translation:
Expected results:
translation/{source}-to-{target}/{version}(e.g.,translation/en-to-ru/v3.1.0)