Add info, that translation is outdated (enhanced fallback content) #2497
Replies: 1 comment 1 reply
-
One additional issue is that a user could update an outdated translation only to fix a typo in this translation. This updates should probably not mark the translation as updated. You can also have the same scenario in the default language version where a commit only fix a typo in this version and should not mark all updated translations as outdated. At this point, you need some kind of constraints, rules or even framework to handle all possible scenarios, e.g. something like Lunaria. I feel like this would be a better place to have a component or some kind of Starlight override in its Starlight plugin to handle all these scenarios with a defined set of rules. |
Beta Was this translation helpful? Give feedback.
-
What version of
starlight
are you using?0.28.3
What is your idea?
Currently the translation only checks if the file exists in other locals and shows the fallback content + info that the page is not available in your local when it can't be found.
The idea is, that Starlight also shows a info (not so severe as a warning) when a translation is out of date, which is far more complicated (because then Starlight needs to calculated with dates based on the Git History and then the git checkout must be with far enough history and what if the maintainer doesnt even use git and so on...).
Like the warning in the picture but more something like "This content is outdated, read the English version if you want up-to-date information!" (The german text in the image translates to something like: "This content is not yet available in your language")
There are a lot of issues with this feature, but I'll mention it nonetheless because the "Last updated" feature also exists.
Why is this feature necessary?
I just would love the additional accessibility for the user but we have to trade of some computing power I think cause this feature would mean running additional build calculations which are not that environmentally-friendly...
Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions