* Localization key names are arbitrary. You can set any name. We prefer some conventions for specific text types;
* Add `Menu:` prefix for menu items.
* Use `Enum:<enum-type>.<enum-name>` or `<enum-type>.<enum-name>` or `<enum-name>` naming convention to localize the enum members. When you do it like that, ABP can automatically localize the enums in some proper cases.
* Use `Enum:<enum-type>.<enum-value>` or `<enum-type>.<enum-value>` naming convention to localize the enum members. When you do it like that, ABP can automatically localize the enums in some proper cases.
If a text is not defined in the localization file, it **falls back** to the localization key (as ASP.NET Core's standard behavior).
@ -279,7 +279,7 @@ $(function () {
title: l('Type'),
data: "type",
render: function (data) {
return l('Enum:BookType:' + data);
return l('Enum:BookType.' + data);
}
},
{
@ -517,7 +517,7 @@ Open the `/src/app/book/book.component.html` and replace the content as shown be