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

Publishing i18-helpers #462

Closed
jhoobergs opened this issue Feb 28, 2023 · 4 comments
Closed

Publishing i18-helpers #462

jhoobergs opened this issue Feb 28, 2023 · 4 comments
Assignees

Comments

@jhoobergs
Copy link

Are there any plans for publishing the i18-helpers binaries to e.g., crates.io? I would like to use the same translation system as used in this repo, but copying the code of the helpers does not seem productive.

@jooyunghan
Copy link
Collaborator

Publishing it was mentioned in #434 but no concrete plan yet. With #318 @djmitche is still working on enhancing i18n-helpers.

@mgeisler
Copy link
Collaborator

Thanks for raising this @jhoobergs! It's definitely on our radar, we've just been holding off a bit to get the infrastructure tested a bit first.

Note that you can install the binaries directly from this repository with

cargo install --git https://github.com/google/comprehensive-rust i18n-helpers

That might help a bit until we split the code into its own repository and start publishing to crates.io.

@mgeisler
Copy link
Collaborator

Related, I reached out to @funkill from mdbook-i18n to see if we can combine the two somehow: funkill/mdbook-i18n#32.

It seems that mdbook-i18n is doing the looping part of our publish.yml script and it would be great to extract that functionality into something people can run by hand. That way, publish.yml can become trivial and people can generate a full book locally to check how the translated output looks.

@mgeisler
Copy link
Collaborator

mgeisler commented Apr 4, 2023

The plugins are now published, please see: https://crates.io/crates/mdbook-i18n-helpers 🚀

I'll update our publish workflow next to use the new crate.

@mgeisler mgeisler closed this as completed Apr 4, 2023
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

No branches or pull requests

3 participants