comprehensive-rust icon indicating copy to clipboard operation
comprehensive-rust copied to clipboard

Publishing i18-helpers

Open jhoobergs opened this issue 2 years ago • 2 comments

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.

jhoobergs avatar Feb 28 '23 10:02 jhoobergs

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

jooyunghan avatar Feb 28 '23 13:02 jooyunghan

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 avatar Feb 28 '23 16:02 mgeisler

Related, I reached out to @funkill from mdbook-i18n to see if we can combine the two somehow: https://github.com/funkill/mdbook-i18n/issues/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 avatar Mar 28 '23 12:03 mgeisler

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

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

mgeisler avatar Apr 04 '23 17:04 mgeisler