Skip to content

Commit

Permalink
Added Indian Language Hindi
Browse files Browse the repository at this point in the history
  • Loading branch information
sharduld1908 committed Oct 1, 2023
1 parent bcd1c6d commit 41d26dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/faker-cxx/types/Language.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ enum class Language
German,
Russian,
Romanian,
Hindi,
};

inline std::string toString(Language language)
{
std::map<Language, std::string> languageToStringMapping{
{Language::English, "English"}, {Language::Polish, "Polish"}, {Language::Italian, "Italian"},
{Language::French, "French"}, {Language::German, "German"}, {Language::Russian, "Russian"},
{Language::Romanian, "Romanian"}};
{Language::English, "English"} , {Language::Polish, "Polish"}, {Language::Italian, "Italian"},
{Language::French, "French"} , {Language::German, "German"}, {Language::Russian, "Russian"},
{Language::Romanian, "Romanian"}, {Language::Hindi, "Hindi"}};

return languageToStringMapping.at(language);
}
Expand Down

0 comments on commit 41d26dc

Please sign in to comment.