Open Closed

Language texts/translations #7285


User avatar
0
rivz created
  • ABP Framework version: v8.1
  • UI Type: Blazor Server
  • Database System: EF Core (PostgreSQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Have an issue with translations.

We used/are using json files for translations "key:value", but there is an UI (Language texts). But the issue is that when i update something within the UI, the translation in blazor view doesent update. (Updates in Language Texts UI, but not on the web)


11 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You need to refresh the Page

  • User Avatar
    0
    rivz created

    That was the first thing i tried, also restarted host and blazor docker containers.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    This may be related to caching. what's your Redis configuration

  • User Avatar
    0
    rivz created

    Also cleared redis cache, not sure what do you mean by redis configuration. I am running redis also in a docker container, redis:7.2.4 image.

    Can the issue be related, that i have localizations in json files, and the text module doesent read the ones in database?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I mean your Redis configuration code for each project, you need to make sure they are the same

    For example:

  • User Avatar
    0
    rivz created

    Yes they all are the same in every project, just double checked

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I could not reproduce the problem.

  • User Avatar
    0
    rivz created

    Interesting.

    Maybe it has something to do that i have .json files where i include my translations in code?

    Or that i am doing the UI translations from host tenant and expect them to change under every tenant? Are the LanguageText-s global or each tenant has its own?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    I'm not sure,

    How do I reproduce the problem?

    Could you share the full steps or an example project with me?

    my email is shiwei.liang@volosoft.com I will check it

  • User Avatar
    0
    rivz created

    Okay i found out that it is tenant based? Is there a way so when i change it on host, it changes for every tenant? I had this with TenantId empty, and it didnt changed anywhere, but when i added TenantId, it changed for that tenant.

  • User Avatar
    0
    rivz created

    So this helped me.

    https://support.abp.io/QA/Questions/6636/Tenant-independent-localization-with-VoloLanguageManagement

    thanks!

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09