Skip to content
Permalink
Browse files

fix(lore): added language switch support

  • Loading branch information
Supamiu committed May 14, 2019
1 parent 2556071 commit 317357ca90874cba3581a2c46e595ccc977d836c
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/xivapi.service.ts
@@ -44,12 +44,15 @@ export class XivapiService {
* Makes a request on a given endpoint with an id.
*
* @param query Text to search inside the lore.
* @param lang
* @param allLanguages should it include Text_*?
* @param dataColumns Additional data you want to fetch.
*/
public searchLore(query: string, allLanguages: boolean = false, dataColumns: string[] = []): Observable<LoreSearchResult> {
public searchLore(query: string, lang: string = 'en', allLanguages: boolean = false,
dataColumns: string[] = []): Observable<LoreSearchResult> {
let httpParams: HttpParams = new HttpParams()
.set('string', query);
.set('string', query)
.set('language', lang);
if (dataColumns && dataColumns.length > 0) {
const columns: string[] = [
'Context',

0 comments on commit 317357c

Please sign in to comment.
You can’t perform that action at this time.