diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 08:33:08 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-08-09 08:33:08 +0200 |
| commit | 5d34aff5888d3f0c624251f15bedb96c347978d6 (patch) | |
| tree | 69a49651271d645ca7eaa114cb1830bf759c0930 /include/locales.hpp | |
| parent | b94a7ae06b20d550c727d5192cea8baf3e8fb641 (diff) | |
refactors
Diffstat (limited to 'include/locales.hpp')
| -rw-r--r-- | include/locales.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/locales.hpp b/include/locales.hpp new file mode 100644 index 0000000..78bb682 --- /dev/null +++ b/include/locales.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include <stdio.h> +#include <string.h> + +typedef struct { + const char* key; + const char* value; +} locale_entry; + +typedef struct { + const char* lang_code; + locale_entry* entries; + int entry_count; +} locale_map; + +extern locale_entry en_locales[]; +extern const int en_locale_count; + +void set_locale(const char key[2]); +const char* localize(const char* key);
\ No newline at end of file |
