Home Tip of the day. Display multilanguage content
Post
Cancel

Tip of the day. Display multilanguage content

TIP: you can use sharepoint pagecontext to display multilanguage content in handlebar templates

1
2
3
4
5
6
7
8
9
10
11
12
13
{{#compare pageContext.web.language '==' 1043}}

    Dit wordt weergegeven als de huidige taal is 1043

    De taalcode is {{pageContext.web.language}} - Dutch

  {{else}}

    This is rendered if current language is anything else

    Language code is {{pageContext.web.language}} 

{{/compare}}

This mostly related to SPFX Content query webpart, search query webparts, any other webparts with handlebars

This post is licensed under CC BY 4.0 by the author.

Tip of the day. Truncating handlebars

Get teams tabs and export to CSV