outl1ne / nova-settings

A Laravel Nova tool for editing custom settings using native Nova fields.
MIT License
274 stars 96 forks source link

[request] Translatable messages #9

Closed pzmarzly closed 4 years ago

pzmarzly commented 4 years ago

There are some hardcoded strings, such as:

It would be nice to be able to translate them via .js files in resources/lang. I think there is some way to get __ as Vue helper, if not, you can easily reimplement it:

let __ = function (original) {
    let translated = window.config.translations[original];
    if (translated !== undefined) return translated;
    return original;
}
Tarpsvo commented 4 years ago

Added translations support in version 2.3.0. Good luck!