mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 17:06:25 +01:00
26 lines
480 B
C++
26 lines
480 B
C++
#include "language.h"
|
|
|
|
#include <Arduino.h>
|
|
|
|
#include "settings.h"
|
|
#include "tag_db.h"
|
|
|
|
int currentLanguage = defaultLanguage;
|
|
|
|
void updateLanguageFromConfig() {
|
|
int tempLang = config.language;
|
|
if (tempLang < 0 || tempLang >= sizeof(languageList)) {
|
|
Serial.println("Language not supported");
|
|
return;
|
|
}
|
|
currentLanguage = tempLang;
|
|
}
|
|
|
|
int getDefaultLanguage() {
|
|
return defaultLanguage;
|
|
}
|
|
|
|
int getCurrentLanguage() {
|
|
return currentLanguage;
|
|
}
|