feat: added language changing

This commit is contained in:
ADev531 2025-07-21 20:59:55 +09:00
commit 907de64376
6 changed files with 107 additions and 27 deletions

View file

@ -1,7 +1,25 @@
#pragma once
#include <string_view>
#include <nn/swkbd.h>
enum inkay_language {
Japanese = 0,
English,
French,
German,
Italian,
Spanish,
SimplifiedChinese,
Korean,
Dutch,
Portuguese,
Russian,
TraditionalChinese,
Invalid,
// custom ones
System,
EnUwU,
};
struct config_strings {
const char *plugin_name;
@ -19,4 +37,4 @@ struct config_strings {
std::string_view module_init_not_found;
};
config_strings get_config_strings(nn::swkbd::LanguageType language);
config_strings get_config_strings(inkay_language language);