Skip to content

Fix XLIFF namespace compatibility and add GitHub Actions CI#3

Merged
maxcorrads merged 1 commit intomasterfrom
fix/xliff-namespace-compatibility-and-ci
Feb 6, 2026
Merged

Fix XLIFF namespace compatibility and add GitHub Actions CI#3
maxcorrads merged 1 commit intomasterfrom
fix/xliff-namespace-compatibility-and-ci

Conversation

@maxcorrads
Copy link
Collaborator

XLIFF files from Lokalise/WTI lack the default XML namespace (xmlns="..."), using only schemaLocation instead. This caused Nokogiri XPath queries like //xmlns:file to fail with "Undefined namespace prefix".

Add xliff_xpath helper that detects whether the document has a default namespace and adapts the XPath accordingly, supporting both old (Xcode-generated) and new (Lokalise) XLIFF formats.

Also:

  • Add GitHub Actions CI workflow (replaces defunct Travis CI)
  • Fix export tests for Xcode >= 10 (.xcloc path)
  • Update README badges to point to treatwell/xlocalize
  • Add vendor/ and *.xcloc/ to .gitignore

XLIFF files from Lokalise/WTI lack the default XML namespace
(xmlns="..."), using only schemaLocation instead. This caused
Nokogiri XPath queries like //xmlns:file to fail with
"Undefined namespace prefix".

Add xliff_xpath helper that detects whether the document has a
default namespace and adapts the XPath accordingly, supporting
both old (Xcode-generated) and new (Lokalise) XLIFF formats.

Also:
- Add GitHub Actions CI workflow (replaces defunct Travis CI)
- Fix export tests for Xcode >= 10 (.xcloc path)
- Update README badges to point to treatwell/xlocalize
- Add vendor/ and *.xcloc/ to .gitignore
@maxcorrads maxcorrads merged commit 76d7338 into master Feb 6, 2026
1 check passed
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.

1 participant