Locale
Some checks failed
Build Dusk / run-tests (push) Failing after 2m3s
Build Dusk / build-linux (push) Successful in 1m50s
Build Dusk / build-psp (push) Failing after 1m48s

This commit is contained in:
2026-01-27 09:24:16 -06:00
parent fb93453482
commit 2b9be6675c
5 changed files with 59 additions and 19 deletions

View File

@@ -7,29 +7,14 @@
#pragma once
#include "asset/asset.h"
typedef enum {
DUSK_LOCALE_EN_US,
DUSK_LOCALE_COUNT
} dusklocale_t;
#include "localemanager.h"
#include "locale/locale.h"
typedef struct {
dusklocale_t locale;
assetlanguage_t language;
} localemanager_t;
typedef struct {
const char_t *file;
} localeinfo_t;
static const localeinfo_t LOCALE_INFOS[DUSK_LOCALE_COUNT] = {
[DUSK_LOCALE_EN_US] = {
.file = "en_US"
}
};
extern localemanager_t LOCALE;
/**