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

Localize text in project "BasicTheme" #7782

Closed
pointlevel opened this issue Feb 19, 2021 · 1 comment · Fixed by #7797
Closed

Localize text in project "BasicTheme" #7782

pointlevel opened this issue Feb 19, 2021 · 1 comment · Fixed by #7797

Comments

@pointlevel
Copy link

Hello!

I have downloaded and included the project "Volo.Abp.AspNetCore.Components.WebAssembly.BasicTheme" as described here: https://community.abp.io/articles/creating-a-new-ui-theme-by-copying-the-basic-theme-for-blazor-ui-qaf5ho1b

Inside the file Themes/Basic/LoginDisplay.Razor there is a few texts that is not localized. How can i achieve that. Really tried to find answers but cant find anything. This closed issue starts with the same problem, but i could not find a solution? #7280

@realLiangshiwei
Copy link
Member

Please read locallization document first.

Try

........
@inject IStringLocalizer<AbpUiResource> L
....

<NotAuthorized>
     <a class="nav-link" href="authentication/login">@L["Login"]</a>
</NotAuthorized>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants