Accept-Language
header. The locale identifier consists of a 2 or 3 letter language tag optionally followed by a hyphenated region. For example, en
, en-US
, en-UK
, etc.return org.objects.c_my_object.find({_id: '5d0552f04b373401003aba6a'}).locale('en_US').passthru()
return org.objects.c_my_object.insertOne({c_greeting: 'hello'}).locale('en_US').execute()
return org.objects.c_my_object.updateOne({_id: '5d0552f04b373401003aba6a'}, {$set: {c_greeting: 'bonjour'}}).locale('fr_FR').execute()
c_greeting property
in the object c_my_object
, and a value is written to it while specifying the en_US locale.en_US
locale, we can expect to always receive the c_greeting of "hello".locale: 'en_US', value: 'hello'
}).