Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Add language mappings #12

Open
skogsbrus opened this issue Nov 1, 2017 · 1 comment
Open

Add language mappings #12

skogsbrus opened this issue Nov 1, 2017 · 1 comment

Comments

@skogsbrus
Copy link
Owner

Google Books API returns languages in the format "se", "en"... etc.

I want this to default to "Svenska", "Engelska"... etc

To solve this issue:

  • Implement a mapping from language abbreviations to complete language names
  • Use this mapping as the default value when adding a book
@skogsbrus
Copy link
Owner Author

For now, I've added two hardcoded mappings. One for English and one for Swedish. This should probably be extracted to a file or something instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant