Skip to content

Commit

Permalink
providers: bing: Save languages names for fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmardojai committed Dec 19, 2023
1 parent fadd1e7 commit cb9a9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialect/providers/modules/bing.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def on_response(data):
langs = soup.find('optgroup', {'id': 't_tgtAllLang'})
for child in langs.findChildren():
if child.name == 'option':
self.languages.append(child['value'])
self.add_lang(child['value'], child.contents[0])

# Get IID
iid = soup.find('div', {'id': 'rich_tta'})
Expand Down

0 comments on commit cb9a9b8

Please sign in to comment.