Alert for untranslated content #784
roheclassic
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Porpose
Show standard message for untranslated content.
*It says "🌐 This content is currently available in English only😌"
Steps to make it
1. Add the code for the alert into
docs
layout template (just before theTitle.
).layouts/docs/single.html
*It's also a good idea to add this code to your partials(layouts) as needed.
2. Define
untranslated
in i18n rulesi18n/xx.toml
3. Set
untranslated
to true in the header of the content file for which you want to see that notifications.content file (index.md)
It can also be used for message use cases such as:
"This content has been machine translated from English. If there is any discrepancy in the content, please give priority to the English version.”
Beta Was this translation helpful? Give feedback.
All reactions