alexusmai / laravel-file-manager

File manager for Laravel
MIT License
1.14k stars 292 forks source link

Change lang #225

Open restcore-framework opened 3 years ago

restcore-framework commented 3 years ago

how can i change the lang ?

alexusmai commented 3 years ago

Hi, you can change lang in your laravel settings(config/app.php - locale) if it's exist in this list: https://github.com/alexusmai/vue-laravel-file-manager/tree/master/src/lang If lang doesn't exist - will be used - english language

yogithesymbian commented 3 years ago

i have export one of lang and put the file in same folder import fileManagerLang from '@/fileManagerLang'; and then translate all value.

doesnt work for custom translate

settings: {
lang: 'fileManagerLang', // set language // how to correct use ?
lang: fileManagerLang, // set language // 
}
settings: {
        baseUrl: 'xxxx', // overwrite base url Axiosx
        windowsConfig: 2, // overwrite config
        lang: 'de', // set language
        translation: { // add new translation
          name: fileManagerLang,
          content: {
            back: 'ク',
          },
        },

thanks in advance

vikasjangir202 commented 3 years ago

@yogithesymbian I am having same issue here. Did you manage to change the language or you still having this issue ?