From 5d34aff5888d3f0c624251f15bedb96c347978d6 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 9 Aug 2025 08:33:08 +0200 Subject: refactors --- include/locales.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/locales.hpp (limited to 'include/locales.hpp') 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 +#include + +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 -- cgit v1.2.3-70-g09d2