-
Notifications
You must be signed in to change notification settings - Fork 56
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
[Feature Request] Add translation option to add language for Next and prev buttons. #43
Comments
The solution is quite simple. All you have to do is to create a i18n directory inside your plugin, where README.md is located. Then put inside the i18n directory file en.toml, pl.toml, fr.toml etc. for each language. Example content of en.toml
Example content of pl.toml
Then in your file embed-pdf.html inside the shortcodes directory you have to change Next and Previous to this:
|
Would you be able to raise a PR for this solution? I can test it out. |
The problem is that I have no idea how to raise a PR. I already tested it on my side and it is working as expected. |
Sure. No worries . |
I was wondering is there any option to add i18n translation to at least translate buttons next and previous. Of course I can try to do it on my own. I know I can hardcode this oj file, but you know that this approach is not something that I want to achieve. Besides adding a language file is much easier for average user.
Originally posted by @sysadmin-info in #24 (comment)
The text was updated successfully, but these errors were encountered: