Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate source file without leading slash #141

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

WULCAN
Copy link
Collaborator

@WULCAN WULCAN commented Nov 24, 2024

Description

This PR fixes a bug where new translations got a source file prefixed with /, like an asbolute path, when the english translation's sourcefile was in the root of the translation path.

Source files prefixed with slash breaks the code that writes translations to disk when we create pull requests.

Related issues

This relates to #126

Our code to write translations back to disk when we create pull requests
does not handle leading slahses well and anyway, the sourceFile is meant
to be relative, not absolute.
@WULCAN WULCAN merged commit cc8b605 into main Dec 7, 2024
1 check passed
@WULCAN WULCAN deleted the undocumented/fix-prefix-slash-on-new-translation branch December 7, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants