Discussions

Ask a Question
Back to All

USe of razor and static contentlocalization

Hello,

Is it possible to use the static content localisation functionality based on resource files? Is there a example of or a pointer how to implement it? In the razor host i use @Html.GetLocalizedString("Time").

Admin

Hi,
OpenContent can include resource files with the templates.
You can edit them from Edit Templates Files. They are json files.

There 1 file for each language (localization.nl-NL.json for example)

You can access the static texte localizations in razor : @Model.Localization.key1

Morte info : https://opencontent.readme.io/v3.1/docs/multi-language

Marked as answered by Sacha Trauwaen

ο»Ώ