Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
i18n.hpp File Reference
#include <fmt/format.h>
#include <string>
#include <aurore/core/logger.hpp>

Go to the source code of this file.

Namespaces

namespace  aurore
 
namespace  aurore::internal
 
namespace  aurore::literals
 

Functions

std::string aurore::localeFromSystem (std::string system)
 
std::string aurore::internal::getRawStr (std::string stringName)
 
template<typename... Args>
std::string aurore::getStr (std::string stringName, Args &&... args)
 
void aurore::loadTranslations ()
 
void aurore::loadTranslations (const std::string &locale)
 
std::string aurore::literals::operator""_i18n (const char *str, size_t len)
 

Variables

const std::string aurore::LOCALE_JA = "ja"
 
const std::string aurore::LOCALE_EN_US = "en-US"
 
const std::string aurore::LOCALE_EN_GB = "en-GB"
 
const std::string aurore::LOCALE_FR = "fr"
 
const std::string aurore::LOCALE_FR_CA = "fr-CA"
 
const std::string aurore::LOCALE_DE = "de"
 
const std::string aurore::LOCALE_IT = "it"
 
const std::string aurore::LOCALE_ES = "es"
 
const std::string aurore::LOCALE_ZH_CN = "zh-CN"
 
const std::string aurore::LOCALE_ZH_HANS = "zh-Hans"
 
const std::string aurore::LOCALE_ZH_HANT = "zh-Hant"
 
const std::string aurore::LOCALE_ZH_TW = "zh-TW"
 
const std::string aurore::LOCALE_Ko = "ko"
 
const std::string aurore::LOCALE_NL = "nl"
 
const std::string aurore::LOCALE_PT = "pt"
 
const std::string aurore::LOCALE_PT_BR = "pt-BR"
 
const std::string aurore::LOCALE_RU = "ru"
 
const std::string aurore::LOCALE_ES_419 = "es-419"
 
const std::string aurore::LOCALE_RYU = "ja-RYU"
 custom locale
 
const std::string aurore::LOCALE_AUTO = "auto"
 
const std::string aurore::LOCALE_DEFAULT = LOCALE_EN_US