mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Added lookup support for foreign language names. #15
Changed lookup()'s return value to be a list of named tuples so the caller can know which language each result is in.
This commit is contained in:
parent
0b5eba6620
commit
4e51867e95
3 changed files with 55 additions and 32 deletions
pokedex
|
@ -131,4 +131,4 @@ def romanize(string):
|
|||
if last_kana == 'sokuon':
|
||||
raise ValueError("Sokuon cannot be the last character.")
|
||||
|
||||
return ''.join(characters)
|
||||
return unicode(''.join(characters))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue