the RunwareAI Plugin is working now

This commit is contained in:
2025-07-30 23:24:47 +02:00
parent 07c6786bda
commit 47860b4b7d
35 changed files with 544 additions and 218 deletions

View File

@@ -18,7 +18,11 @@ createInertiaApp({
.mixin({
methods: {
__: (key, replace = {}) => {
let translation = props.initialPage.props.translations[key] || key;
let translation = props.initialPage.props.translations[key];
if (translation === undefined) {
translation = key; // Fallback to key if translation not found
}
for (let placeholder in replace) {
translation = translation.replace(`:${placeholder}`, replace[placeholder]);