-
Notifications
You must be signed in to change notification settings - Fork 30
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
Is there a way to internationalize json domain titles ? #274
Comments
True, the strings are hardcoded in English, and there is no config option to change or remove them. We could use Sphinx' own translation mechanism, but I think that would require a .po file (in the doc project's source) that defines the translation for the heading = "%s members" % ("Required" if required else "Optional")
field_list, body = self._make_field(_(heading)) But it will require a message catalog (.po file) of translations on the user's end. |
resolves #274 by leveraging `sphinx.locale._` as a translation proxy. Users will have to create .po files with the following phrases translated: - "Required members" - "Optional members"
The solution for this was released in v0.12.0 |
Hi,
first of all, thank you for your really helpful theme/extension.
I' trying to use json domain in a non english document and I'm stuck with the "required/optional" members string. I'd like to change it but I can't find a way to change it using a parameter/option.
I think the issue is because theses strings are hard coded here :
sphinx-immaterial/sphinx_immaterial/apidoc/json/domain.py
Line 866 in 9adb3f1
Is there a way to customize it or it's impossible ?
Yours,
The text was updated successfully, but these errors were encountered: