liamnichols/xcstrings-tool

Feature Suggestion: Support to other build systems

Opened this issue · 1 comments

XCStrings-tool seems to be pretty promising. Would love to know how to integrate it with non-Apple environment build system like Bazel

Hi @lucasmarcal-faire, thanks for reaching out with the suggestion! That's a great idea and it's something that I haven't thought about much before, partially because I have never used Bazel 😄

Would love to know how to integrate it

I'd love to get this documented too if it's useful for you and others. Because I don't know much about Bazel, I don't really know where to begin but I assume that Bazel has some kind of way to run something similar to run scripts?

While I currently document only the build tool plugin, this repository does contain a standalone cli that can be invoked directly... Kind of like this:

$ xcstrings-tool generate path/to/localizable.xcstrings path/to/generated.swift

Once we figure out how it can be integrated, we could consider adding a Bazel example to xcstrings-tool-demo as well as adding some documentation probably.