Code Monkey home page Code Monkey logo

Comments (6)

turquoiseowl avatar turquoiseowl commented on June 17, 2024

"Same thing for black and white list"

Would you elaborate? Expected vs. observed behavior?

from i18n.

raulvejar avatar raulvejar commented on June 17, 2024

If the webconfig has a configuration for

  • i18n.BlackList
  • i18n.WhiteList
  • i18n.NuggetBeginToken
  • i18n.NuggetEndToken

Botht the parser and the module that localizes the text should taken them into account
Observed: With the following configuration:

<add key="i18n.BlackList" value="\bin;" />
<add key="i18n.WhiteList" value="*.cs;*.cshtml" />
<add key="i18n.AvailableLanguages" value="en" />
<add key="i18n.NuggetBeginToken" value="[||[" />
<add key="i18n.NuggetEndToken" value="]||]" />

The parser will use the new nuggets and respect the black and white list configuration but when the application runs the module will ignore these configurations and localize all pages with the original '[[[' and ']]]' nuggets

Expected: With the same configuration, the parser will observe the new nuggets and white and black list configurations and so will the application not translating the blacklisted folders when part of the request and only looking for the nuggets defined here

from i18n.

turquoiseowl avatar turquoiseowl commented on June 17, 2024

Just tested your exact config with a token [||[Home]||] and it works. Are you using the latest build? If not, did you not get notification of the the commit above?

from i18n.

raulvejar avatar raulvejar commented on June 17, 2024

I'm using the version from yesterday morning, I'll update and check this again

from i18n.

raulvejar avatar raulvejar commented on June 17, 2024

BTW, we should change the default token, I'm getting tons of conflicts with JSON structures

from i18n.

raulvejar avatar raulvejar commented on June 17, 2024

Works fine in the latest version, thanks
I'm going to open a new issue to track changing the nugget, and we can talk suggestions

from 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.