the RunwareAI Plugin is working now
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user