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

Path improvements for use in Pontoon #22

Merged
merged 4 commits into from
Sep 17, 2024
Merged

Path improvements for use in Pontoon #22

merged 4 commits into from
Sep 17, 2024

Conversation

eemeli
Copy link
Member

@eemeli eemeli commented Sep 16, 2024

A collection of fixes to paths required by Pontoon (mozilla/pontoon#3312).

but `ref_root` itself contains files with extensions that appear localizable,
it is used as the reference directory.

The default `source_locale` is `['en-US', 'en']`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens with "templates"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not treated as anything special. From Pontoon we call this with ref_root set to the source repo root, which doesn't need to have any special name in order to fall back to using the repo root as the reference root.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least for now, we'll need to call this from Pontoon with source_locale=["templates", "en-US", "en"] to keep its behaviour consistent.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh, I completely missed ref_paths was a function parameter.

@eemeli
Copy link
Member Author

eemeli commented Sep 17, 2024

I think this batch is complete for now, and I could roll out a new release once this lands. Further iteration may of course be needed later.

@eemeli eemeli marked this pull request as ready for review September 17, 2024 17:40
@eemeli eemeli requested a review from mathjazz September 17, 2024 17:40
@eemeli eemeli merged commit 4d72207 into main Sep 17, 2024
11 checks passed
@eemeli eemeli deleted the more-paths branch September 17, 2024 18:00
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