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

Don't load translations from xliffsDir during a convert #73

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

ehoogerbeets
Copy link
Contributor

  • we need a Project instance in order to do a convert
  • when the project instance was created, it attempts to load translations from the xliffsDir. However, now that translation loading from the xliffsDir happens recursively, the new Project attempted to load every xliff file in the xliffsDir directory (default: ".") which was waaaaay too big
  • now we pass in a flag to the project constructor that turns off loading of translations for a project that is only needed for convert.

- we need a Project instance in order to do a convert
- when the project instance was created, it attempts to
  load translations from the xliffsDir. However, now
  that translation loading from the xliffsDir happens
  recursively, the new Project attempted to load every
  xliff file in the xliffsDir directory (default: ".")
  which was waaaaay too big
- now we pass in a flag to the project constructor that
  turns off loading of translations for a project that
  is only needed for convert.
@ehoogerbeets ehoogerbeets self-assigned this Mar 1, 2025
Copy link

changeset-bot bot commented Mar 1, 2025

🦋 Changeset detected

Latest commit: 45d947d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
loctool Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Mar 1, 2025

Jest Code Coverage

Code Coverage for changed files • (0%) 
File% Stmts% Branch% Funcs% LinesUncovered Line #s
report-only-changed-files is enabled. No files were changed in this commit :)
Title Lines Statements Branches Functions
ilib-lint-python-gnu Coverage: 76%
75.15% (118/157) 71.18% (42/59) 60.97% (25/41)
loctool Coverage: 81%
81.53% (6640/8144) 74.26% (3374/4543) 72.78% (757/1040)
Title Tests Skipped Failures Errors Time
ilib-lint-python-gnu 35 0 💤 0 ❌ 0 🔥 2.676s ⏱️
loctool 2296 81 💤 0 ❌ 0 🔥 2m 8s ⏱️

@ehoogerbeets ehoogerbeets merged commit 5e58323 into main Mar 3, 2025
1 check passed
@ehoogerbeets ehoogerbeets deleted the fixConvert branch March 3, 2025 16:53
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