Sorry, you need to enable JavaScript to visit this website.

Language parameter

Language parameter

Develop an international app that can be used in different languages. Enhance the search functionality with the language parameter so that the search returns results in a specific language.
Sample use case: If your mobile device is set to a particular language, you see it in your app as well.

List of the supported languages can be found
here.

Use the code snippet presented below to try this in your app.

_

let query = TTSearchQueryBuilder.create(withTerm: term)
    .withLang(language)
    .build()
search.search(with: query)
TTSearchQuery *query =
    [[[TTSearchQueryBuilder createWithTerm:term] withLang:language] build];
[self.search searchWithQuery:query];

 

You are here