In my page I got the message lie "An error has occurred!"
The message is not fit my project.
I want to change the information and language.
I found the messages in:
\node_modules\abp-ng2-module\dist\bundles\abp-ng2-module.umd.js(353,27)
\node_modules\abp-ng2-module\dist\bundles\abp-ng2-module.umd.min.js(1,8628)
\node_modules\abp-ng2-module\dist\src\abpHttpInterceptor.js(33,23)
\node_modules\abp-ng2-module\dist\src\abpHttpInterceptor.js.map(1,12129)
\node_modules\abp-ng2-module\src\abpHttpInterceptor.ts(66,19)
\node_modules\abp-web-resources\Abp\Framework\scripts\libs\abp.jquery.js(65,21)
\node_modules\abp-web-resources\Abp\Framework\scripts\libs\abp.jquery.min.js(1,841)
\node_modules\abp-web-resources\Abp\Framework\scripts\libs\angularjs\abp.ng.js(11,23)
\node_modules\abp-web-resources\Abp\Framework\scripts\libs\angularjs\abp.ng.min.js(1,70)
for example the source is
var AbpHttpConfiguration = /** @class */ (function () {
function AbpHttpConfiguration(_messageService, _logService) {
this._messageService = _messageService;
this._logService = _logService;
this.defaultError = {
message: 'An error has occurred!',
details: 'Error details were not sent by server.'
};
this.defaultError401 = {
message: 'You are not authenticated!',
details: 'You should be authenticated (sign in) in order to perform this operation.'
};
this.defaultError403 = {
message: 'You are not authorized!',
details: 'You are not allowed to perform this operation.'
};
this.defaultError404 = {
message: 'Resource not found!',
details: 'The resource requested could not be found on the server.'
};
}
Question:
- I want to change the message. How can I do it?
- I want to change the English into Chinese. Is there any set for change the message's language?
Need your help. Thanks.
i18n
to support multi-languages