| 695 | |
| 696 | |
| 697 | std::vector<std::string> getLanguages() { |
| 698 | std::vector<std::string> languages; |
| 699 | for (const auto& pair : translations) { |
| 700 | languages.push_back(pair.first); |
| 701 | } |
| 702 | // Sort by language name, by UTF-8 bytes |
| 703 | std::sort(languages.begin(), languages.end(), [](const std::string& a, const std::string& b) { |
| 704 | return translate("language", a) < translate("language", b); |
| 705 | }); |
| 706 | return languages; |
| 707 | } |
| 708 | |
| 709 | |
| 710 | void init() { |
no test coverage detected