this post was submitted on 21 Aug 2023
35 points (100.0% liked)
Programming
17366 readers
508 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
We return / display the translation key name if no translation is available for that language, including for the default (English).
Also, on dev / test environments we can enable a config (.env) setting to append the text " [UNTRANSLATED]" to every value that doesn't have a translation, as they're easier to spot in the website / interface.
I'm talking about a PHP /Laravel project so it was easy to override the default translation engine behaviour.
I suppose my main issue is with the actual language files. In terms of translation we also default to English. It's just a tedious job to remember to add they new key to every language file, which is a problem I'm facing now.
Due to so many new features, the non-English language files are quite outdated.