Add language to inventaire search book
This commit is contained in:
@@ -30,7 +30,8 @@
|
||||
|
||||
function fetchData(searchTerm, authorId) {
|
||||
if (searchTerm != null) {
|
||||
getSearchBooks(data, error, searchTerm, limit, offset.value);
|
||||
let lang = navigator.language.substring(0,2);
|
||||
getSearchBooks(data, error, searchTerm, lang, limit, offset.value);
|
||||
getCountSearchBooks(totalBooksData, errorFetchTotal, searchTerm);
|
||||
} else if (authorId != null) {
|
||||
getAuthorBooks(data, error, authorId, limit, offset.value);
|
||||
|
||||
Reference in New Issue
Block a user