Giter VIP home page Giter VIP logo

vuetify-vue-i18n-integration-workaround's Introduction

vuetify-vue-i18n-integration-workaround

Building a upload form found that the show-size property of the VFileInput component doesn't show the correct string when using the i18n integration with adapter function createVueI18nAdapter. I created a StackBlitz project to reproduce the issue where you can drop a file to the component and see the show-size string and the expectet string.

Test the i18n integration issue on StackBlitz ⚡️

I tried to fix by myself and found that the i18n t function expects an array/object of params where the vuetify function expects a list of params (param1, param2, ...). I patch the vuetify adapter to accept params as array/object, downgrade the t function on i18n adapter to use the vuetify one and the VFileInput component to pass the params as an array. The patched files are in the directory ''workaround'' and the code is marked with the //TODO: comment. Also I make a fork of the StackBlitz project with the workaround or you can make a fork and rename .stackblitzrc.disabled file to .stackblitzrc to get the workaround working.

Test the workaround fork on StackBlitz ⚡️

vuetify-vue-i18n-integration-workaround's People

Contributors

carlesbarreda avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.