setContentLanguage
Set the language tag applied to every language-tagged field the builder emits.
Usage
.('de', 'ltr')
.('Stündliche Wetterbeobachtungen')
description: { '@value': 'Stündliche…', '@language': 'de', '@direction': 'ltr' }Set it before the fields it should apply to. It is read when each value is projected, so calling it last still tags everything — but reading the builder in between shows the old tag.
Returns
- Type:
AssetBuilder
The asset builder instance, to chain further calls with.
Parameters
language
- Type:
string - Default:
'en'
A BCP 47 language tag, such as 'en', 'de' or 'pt-BR'.
direction
- Type:
string - Default:
'ltr'
Text direction — 'ltr' or 'rtl'.