Locale
This commit is contained in:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user