diff options
Diffstat (limited to 'src/locales/locales.hpp')
| -rw-r--r-- | src/locales/locales.hpp | 21 |
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 |
