We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e2613a commit dc0426fCopy full SHA for dc0426f
src/api/v1/system.cc
@@ -36,7 +36,7 @@ namespace api::v1 {
36
std::vector<DataMigration> dataMigrations = {};
37
38
Task<> SystemController::getLocales(const HttpRequestPtr req, const std::function<void(const HttpResponsePtr &)> callback) const {
39
- constexpr Locale LOCALE_EN{"en", "English", DEFAULT_LOCALE};
+ static const Locale LOCALE_EN{"en", "English", DEFAULT_LOCALE};
40
41
auto locales = co_await global::lang->getAvailableLocales();
42
std::ranges::sort(locales, [](const Locale &a, const Locale &b) { return a.id < b.id; });
0 commit comments