Skip to content

Commit

Permalink
adding new languages for API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Zetterstrom committed Aug 31, 2016
1 parent 5b55c35 commit 23bafae
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,23 @@
import com.google.gson.annotations.SerializedName;

/**
* [language] may be ar (Arabic), bs (Bosnian), cs (Czech), de (German), el (Greek),
* en (English, which is the default), es (Spanish), fr (French), hr (Croatian), hu (Hungarian),
* it (Italian), nl (Dutch), pl (Polish), pt (Portuguese), ru (Russian), sk (Slovak), sr (Serbian),
* sv (Swedish), tet (Tetum), tr (Turkish), uk (Ukrainian), x-pig-latin (Igpay Atinlay),
* zh (simplified Chinese), or zh-tw (traditional Chinese).
* [language] may be ar (Arabic), az (Azerbaijani), be (Belarusian), bs (Bosnian),
* cs (Czech), de (German), el (Greek), en (English, which is the default),
* es (Spanish), fr (French), hr (Croatian), hu (Hungarian), id (Indonesian),
* it (Italian), is (Icelandic), kw (Cornish), nb (Norwegian Bokmål), nl (Dutch),
* pl (Polish), pt (Portuguese), ru (Russian), sk (Slovak), sr (Serbian),
* sv (Swedish), tet (Tetum), tr (Turkish), uk (Ukrainian),
* x-pig-latin (Igpay Atinlay), zh (simplified Chinese), or zh-tw (traditional Chinese)
* <p/>
* Created by Kevin Zetterstrom on 2/11/16.
*/
public enum Language {
@SerializedName(ModelConstants.LANGUAGE_ARABIC)
ARABIC(ModelConstants.LANGUAGE_ARABIC),
@SerializedName(ModelConstants.LANGUAGE_AZERBAIJANI)
AZERBAIJANI(ModelConstants.LANGUAGE_AZERBAIJANI),
@SerializedName(ModelConstants.LANGUAGE_BELARUSIAN)
BELARUSIAN(ModelConstants.LANGUAGE_BELARUSIAN),
@SerializedName(ModelConstants.LANGUAGE_BOSNIAN)
BOSNIAN(ModelConstants.LANGUAGE_BOSNIAN),
@SerializedName(ModelConstants.LANGUAGE_CZECH)
Expand All @@ -47,8 +53,16 @@ public enum Language {
CROATIAN(ModelConstants.LANGUAGE_CROATIAN),
@SerializedName(ModelConstants.LANGUAGE_HUNGARIAN)
HUNGARIAN(ModelConstants.LANGUAGE_HUNGARIAN),
@SerializedName(ModelConstants.LANGUAGE_INDONESIAN)
INDONESIAN(ModelConstants.LANGUAGE_INDONESIAN),
@SerializedName(ModelConstants.LANGUAGE_ITALIAN)
ITALIAN(ModelConstants.LANGUAGE_ITALIAN),
@SerializedName(ModelConstants.LANGUAGE_ICELANDIC)
ICELANDIC(ModelConstants.LANGUAGE_ICELANDIC),
@SerializedName(ModelConstants.LANGUAGE_CORNISH)
CORNISH(ModelConstants.LANGUAGE_CORNISH),
@SerializedName(ModelConstants.LANGUAGE_NORWEGIAN_BOKMAL)
NORWEGIAN_BOKMAL(ModelConstants.LANGUAGE_NORWEGIAN_BOKMAL),
@SerializedName(ModelConstants.LANGUAGE_DUTCH)
DUTCH(ModelConstants.LANGUAGE_DUTCH),
@SerializedName(ModelConstants.LANGUAGE_POLISH)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ final class ModelConstants {

// Language enum strings
static final String LANGUAGE_ARABIC = "ar";
static final String LANGUAGE_AZERBAIJANI = "az";
static final String LANGUAGE_BELARUSIAN = "be";
static final String LANGUAGE_BOSNIAN = "bs";
static final String LANGUAGE_CZECH = "cs";
static final String LANGUAGE_GERMAN = "de";
Expand All @@ -107,7 +109,11 @@ final class ModelConstants {
static final String LANGUAGE_FRENCH = "fr";
static final String LANGUAGE_CROATIAN = "hr";
static final String LANGUAGE_HUNGARIAN = "hu";
static final String LANGUAGE_INDONESIAN = "id";
static final String LANGUAGE_ITALIAN = "it";
static final String LANGUAGE_ICELANDIC = "is";
static final String LANGUAGE_CORNISH = "kw";
static final String LANGUAGE_NORWEGIAN_BOKMAL = "nb";
static final String LANGUAGE_DUTCH = "nl";
static final String LANGUAGE_POLISH = "pl";
static final String LANGUAGE_PORTUGUESE = "pt";
Expand Down

0 comments on commit 23bafae

Please sign in to comment.