Git Product home page Git Product logo

Comments (5)

hesslau avatar hesslau commented on June 9, 2024 1

But your database as you've shown it has no English translation, so where is "Saepe magni voluptatum." coming from?

I had column_fallback enabled when making these examples but assumed it wasn't relevant, so I left it out from the configuration. "Saepe magni voluptatum." was stored in the original model's table

ok, after a bit of tinkering I figured out that my issue with locale_accessors was related to my rails configuration – begging your pardon for the confusion!

however, I still can't get fallbacks to work, but I believe it's a configuration issue. posted it here: https://stackoverflow.com/questions/74113769/cant-get-fallbacks-to-work-in-rails-moblity

thanks for this awesome gem! this is helping a lot

from mobility.

shioyama avatar shioyama commented on June 9, 2024

When you say "default value", what default do you mean?

from mobility.

hesslau avatar hesslau commented on June 9, 2024

Oh, since :en is my default locale I would be expecting to get the english translation when requesting a translation which doesn exist (at least when the fallback plugin is enabled). So "default value" means the :en translation of the requested string.

from mobility.

shioyama avatar shioyama commented on June 9, 2024

But your database as you've shown it has no English translation, so where is "Saepe magni voluptatum." coming from?

Anyway I need reproducible steps in order to consider this a bug of any kind. Ideally a failing test. See other issues to see how this is usually done. Otherwise it's not clear that we're even talking about the same thing.

Also, it seems like you have a slug translated attribute which has nothing to do with this issue. Please avoid everything unrelated and focus on reproducing the issue with as little as possible. That makes it easier to understand what's going on.

from mobility.

shioyama avatar shioyama commented on June 9, 2024

See: #85

from mobility.

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.