- π³π±Netherlands johnv
Not sure what the use case is here.
To interface the User translation text, you can
- install locale (Interface translation) module
- goto admin/config/regional/translate
- set the target language, to be able to the new language.Or, for the others,
switch from default language '/node/8/edit' to target language '/nl/node/8/edit'
having set up /admin/config/regional/language/detection properly.But, 5 years have past.
Settings this to outdated. - π«π·France flocondetoile Lyon
I believe this issue is still relevant.
The use case is to change programmatically the language in order to translate something in another language. An example as a use case is how Drupal Commerce send Email Order Receipt, given the preferred language of a customer.See https://git.drupalcode.org/project/commerce/-/blob/8.x-2.x/src/MailHandl...
- Status changed to Active
over 1 year ago 8:57am 14 November 2023 - π³π±Netherlands johnv
Then this issue seems like the same (duplicate) feature request? #2350907: Create simple helper function to add a string translation programatically β
Adding the word 'programmatically' already helps the reader.
- π³π±Netherlands johnv
And this issue marks the problem as a bug: π¬ TranslatableMarkup does not seem to use current but rather default language Active
- Status changed to Closed: duplicate
over 1 year ago 10:05pm 20 November 2023 - π©πͺGermany sleitner
Duplicate of π Allow to change the current language Needs work