News for hackers. Stuff that matters.
Re:Internationalization (i18n) best practices for front-end ... by Etheryte on Friday August 11, 2023 @09:13AM (#37088306)
Most common translation tools already support this. From GNU gettext where it's called context [0], to FormatJS where it's called a description [1], all translation tools worth their salt support providing additional information about the usage. The problem is generally not on the tooling side but on the awareness side, if the person implementing the feature only speaks one language it's easy to overlook issues that wouldn't occur in their native language.

[0] https://www.gnu.org/software/gettext/manual/gettext.html#Con...

[1] https://formatjs.io/docs/intl/#message-descriptor

Re:Internationalization (i18n) best practices for front-end ... by holoduke on Friday August 11, 2023 @02:59PM (#37092487)
If you can tell me how to provide context in the google translation api i would be very happy. Dont think it exists. Only in the web version.