From 853bbb3752a5fa2f58ef456ffb6e3a552e13cb11 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 3 Aug 2025 19:22:36 +0200 Subject: initial commit --- src/locales/locales.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/locales/locales.hpp (limited to 'src/locales/locales.hpp') diff --git a/src/locales/locales.hpp b/src/locales/locales.hpp new file mode 100644 index 0000000..78bb682 --- /dev/null +++ b/src/locales/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