How do I create a multilingual export? I have Drupal 8 site which interacts with a React component.
I want to expose one of my content type's content using REST export in views.
How do I set views path to create REST export for multilingual support?
For example, mysite/rest/export/data should give JSON data in English, while mysite/nl/rest/export/data or mysite/rest/export/data/nl should give JSON data in Dutch.
Found solution in two ways.

Method-1:

Add language in filter criteria as mentioned below.



Method-2:

1) Add language in contextual filter

2) Provide a default value &amp; select path component(I have selected 2)

3) Provide view path as "rest/nl/export" - EN or NL provide your language code