Deluge Firmware 1.3.0
Build date: 2025.06.30
Loading...
Searching...
No Matches
deluge::l10n::Language Class Reference
Collaboration diagram for deluge::l10n::Language:

Public Types

using map_type = std::array<std::optional<std::string_view>, kNumStrings>

Public Member Functions

 Language (std::string name, Language const *fallback=nullptr)
consteval Language (char const *name, std::initializer_list< entry_type > stringmaps, const Language *fallback=nullptr)
 Builder-style constructor for creating localization language maps (compile-time only)
constexpr map_type::value_type get (String entry) const
constexpr Languageadd (String entry, map_type::value_type value)
constexpr std::string_view name () const
constexpr bool hasFallback () const
constexpr const Languagefallback () const

Private Types

using entry_type = std::pair<l10n::String, std::string_view>

Private Attributes

std::string name_
map_type map_ {}
const Languagefallback_ = nullptr

The documentation for this class was generated from the following file: