Code Monkey home page Code Monkey logo

Comments (5)

tikiatua avatar tikiatua commented on June 20, 2024 1

HI @davidpelayo,

This issue is quite likely due to the changed regular expression match that we use to identify placeholders in translation strings. With the new regex matcher, we require at least two characters, which breaks your code if the variable replacement results in a matcher with only one character (i.e. a number).

I will adapt the regex matcher to also include matches for single characters as long as they match [A-Za-z0-9_]. Stay tuned.

from vuex-i18n.

tikiatua avatar tikiatua commented on June 20, 2024 1

Hi @davidpelayo

Thank you for reporting this. Definitely not intended. I will look into this.

from vuex-i18n.

tikiatua avatar tikiatua commented on June 20, 2024

should be fixed in latest release v1.10.9

from vuex-i18n.

davidpelayo avatar davidpelayo commented on June 20, 2024

Additionally, to my message above, the latest version fails on IE11 due short hand properties not being transpiled, such us this.

Where:

SET_LOCALE(state, payload) {
}

It should be:

SET_LOCALE: function(state, payload) {
}

i18nerror

Is this intended?

from vuex-i18n.

tikiatua avatar tikiatua commented on June 20, 2024

Hi there,

The issue should be fixed now in version v1.10.10. I needed to change the build process somewhat, as babel needs the node_modules and babelrc file to be in the same root directory as the scripts to transpile.

from vuex-i18n.

Related Issues (20)

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.