feat: replace static labels with configurable values

This commit is contained in:
Mathias Schopmans
2024-03-04 13:34:47 +01:00
committed by Mathias Schopmans
parent 5ef0f07822
commit f7e36ddc9d
13 changed files with 52 additions and 177 deletions

View File

@@ -1,15 +1,14 @@
import config from "../../data/config.json";
import data from "../../data/data.json";
import messages from "../../data/messages.json";
import { Flag, Item, Quadrant, Ring } from "@/lib/types";
export function getMessages() {
return messages;
export function getLabel(key: keyof typeof config.labels) {
return config.labels[key] || "";
}
export function getAppName() {
return messages.radarName;
return getLabel("title");
}
export function getChartConfig() {