feat: setting default locale for instance

This commit is contained in:
frosty
2026-04-06 01:56:11 -04:00
parent e0c209c974
commit f6c8242e72
10 changed files with 27 additions and 5 deletions

View File

@@ -68,6 +68,9 @@ int load_config(const char *filename, Config *config) {
} else if (strcmp(key, "domain") == 0) {
strncpy(config->domain, value, sizeof(config->domain) - 1);
config->domain[sizeof(config->domain) - 1] = '\0';
} else if (strcmp(key, "locale") == 0) {
strncpy(config->default_locale, value, sizeof(config->default_locale) - 1);
config->default_locale[sizeof(config->default_locale) - 1] = '\0';
}
} else if (strcmp(section, "proxy") == 0) {
if (strcmp(key, "proxy") == 0) {