/** * Copyright (c) 2026 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include "dusk.h" typedef struct { const char_t *name; const char_t *file; } localeinfo_t; static const localeinfo_t LOCALE_INFO_EN_US = { .name = "en-US", .file = "locale/en_US.po", }; static const localeinfo_t LOCALE_INFO_JP_JP = { .name = "ja-JP", .file = "locale/jp_JP.po", }; static const localeinfo_t LOCALE_INFO_ES_MX = { .name = "es-MX", .file = "locale/es_MX.po", }; static const localeinfo_t * const LOCALE_INFO_LIST[] = { &LOCALE_INFO_EN_US, &LOCALE_INFO_JP_JP, &LOCALE_INFO_ES_MX }; #define LOCALE_INFO_LIST_COUNT ( \ sizeof(LOCALE_INFO_LIST) / sizeof(LOCALE_INFO_LIST[0]) \ ) #define LOCALE_DEFAULT LOCALE_INFO_EN_US // EOF