Translate Error & Success Messages Answered
Hello Guys, just wondering, I might need to translate Error & Success Messages into more than 4 languages, is it possible with memberstack?
Hello Guys, just wondering, I might need to translate Error & Success Messages into more than 4 languages, is it possible with memberstack?
Comments
2 comments
EDITED: I’m not aware of this being available with MS right now (hopefully I’m wrong) but this is on my TODO list as well.
Here’s some rough code. It wraps the MS method in your own function. Seems to work well but needs thorough testing. It also relies on the MS message Strings not changing in future, so if you can use a library or API to translate any text String, it would be more robust:
* I will not be held responsible for my Spanish :)
https://memberstack.slack.com/archives/C033F0SLTLK/p1694103784392219?thread_ts=1693990652.521599&channel=C033F0SLTLK&message_ts=1694103784.392219
LANG.currentLang() just returns a 2-character country code String such as ‘es’ for Spain, or ‘en’.
Thanks for sharing this solution, Marc! 🙏
Please sign in to leave a comment.