Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arabic and French translation doesn't get replaces in javascript files #409

Open
alexvazquez opened this issue Nov 18, 2020 · 0 comments
Open

Comments

@alexvazquez
Copy link

alexvazquez commented Nov 18, 2020

I have an app that accepts the following languages:

  • English (en)
  • Spanish (es)
  • French (fr)
  • Arabic (ar-SA)

All languages except Arabic (ar-SA) and French (fr) updates the javascript file. In the javascript I have some custom field validations and this is just one of 50 forms but I just wanted to start with this one and make sure all works.

You can see in the image that the validations that are in the javascript doesn't get updated. But this doesn't happen if I change to English or Spanish.

I'm using Bundle and in the view I have this code:


  @{
        var lang = Session["currentLanguage"];

    }
    @Scripts.Render(Scripts.Url("~/bundles/loginjs") + "&lang=" + Request.Cookies["i18n.langtag"]?.Value))

But I think this code doesn't work well, I just tried it in Incognito Mode and I'm not getting it right. So maybe is not the language is that the javacript is not being updated.

image

Any way or workaround to solve it?

Thanks

@alexvazquez alexvazquez changed the title Arabic translation doesn't get replaces in javascript files Arabic and French translation doesn't get replaces in javascript files Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant