summaryrefslogtreecommitdiff
path: root/src/locales/locales.hpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-08-03 19:22:36 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-08-03 19:22:36 +0200
commit853bbb3752a5fa2f58ef456ffb6e3a552e13cb11 (patch)
treece49a533f82a42a65fa6a4771a7b8fbfe33798cf /src/locales/locales.hpp
initial commit
Diffstat (limited to 'src/locales/locales.hpp')
-rw-r--r--src/locales/locales.hpp21
1 files changed, 21 insertions, 0 deletions
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 <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