Molybden API
Loading...
Searching...
No Matches
language.hpp
1// Copyright (c) 2000-2023 TeamDev Ltd. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_LANGUAGE_HPP
6#define MOLYBDEN_LANGUAGE_HPP
7
8#include <string>
9
10namespace molybden {
11
15struct Language {
16 explicit Language(std::string code, std::string region = "");
17
21 std::string code;
22
26 std::string region;
27};
28
29static const Language kBulgarian("bg");
30static const Language kCatalan("ca");
31static const Language kCzech("cs");
32static const Language kDanish("da");
33static const Language kDutch("nl");
34static const Language kGerman("de");
35static const Language kGreek("el");
36static const Language kEnglishUs("en", "us");
37static const Language kEnglishUk("en", "gb");
38static const Language kSpanishSpain("es");
39static const Language kEstonian("et");
40static const Language kPersian("fa");
41static const Language kFrench("fr");
42static const Language kHebrew("he");
43static const Language kHindi("hi");
44static const Language kCroatian("hr");
45static const Language kHungarian("hu");
46static const Language kIndonesian("id");
47static const Language kItalian("it");
48static const Language kKorean("ko");
49static const Language kLithuanian("lt");
50static const Language kLatvian("lv");
51static const Language kNorwegian("nb");
52static const Language kPolish("pl");
53static const Language kPortugueseBrazil("pt", "br");
54static const Language kPortuguesePortugal("pt", "pt");
55static const Language kRomanian("ro");
56static const Language kRussian("ru");
57static const Language kSlovak("sk");
58static const Language kSlovenian("sl");
59static const Language kSerbian("sr");
60static const Language kSwedish("sv");
61static const Language kTurkish("tr");
62static const Language kUkrainian("uk");
63static const Language kVietnamese("vi");
64} // namespace molybden
65
66#endif // MOLYBDEN_LANGUAGE_HPP
A language for which Chromium can perform spell checking.
Definition language.hpp:15
std::string region
The region or an empty string if it is not specified.
Definition language.hpp:26
std::string code
The language code.
Definition language.hpp:21