i18n
Loading...
Searching...
No Matches
ILocale.hpp
Go to the documentation of this file.
1
8#pragma once
9
10#include <string>
11#include <concepts>
12
35class ILocale {
36public:
37
45 virtual const std::string languageCode() const = 0;
46
50 virtual ~ILocale() = default;
51};
52
63template <typename T>
64concept LocaleInterface = std::derived_from<T, ILocale>;
Base interface for all locale implementations.
Definition ILocale.hpp:34
virtual ~ILocale()=default
Virtual destructor for proper cleanup of derived classes.
virtual const std::string languageCode() const =0
Retrieve the two-letter language code of the locale.