Files
comaps/libs/platform/localization_dummy.cpp
Alexander Borsuk 76ffc99abd New cpp folder structure
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-14 20:52:04 +07:00

22 lines
617 B
C++

#include "platform/localization.hpp"
#include <ctime>
namespace platform
{
std::string GetLocalizedTypeName(std::string const & type) { return type; }
std::string GetLocalizedBrandName(std::string const & brand) { return brand; }
std::string GetLocalizedString(std::string const & key) { return key; }
std::string GetCurrencySymbol(std::string const & currencyCode) { return currencyCode; }
std::string GetLocalizedMyPositionBookmarkName()
{
std::time_t t = std::time(nullptr);
char buf[100] = {0};
(void)std::strftime(buf, sizeof(buf), "%Ec", std::localtime(&t));
return buf;
}
} // namespace platform