<%#
 Copyright 2013-2024 the original author or authors from the JHipster project.

 This file is part of the JHipster project, see https://www.jhipster.tech/
 for more information.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      https://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-%><%
let helpBlocks = 0;
// add by begcode start
let proTitle = bcTitle || entityClassHumanized;
if (typeof javadoc != 'undefined') {
    let javaClassDocFirstLine = javadoc.trim().split('\n').shift();
    proTitle = javaClassDocFirstLine || entityClassHumanized;
}
// add by begcode end
%>
{
    "<%= frontendAppName %>": {
        "<%= entityTranslationKey %>" : {
            "home": {
                "title": "<%= entityClassPluralHumanized %>",
                "refreshListLabel": "Refresh list",
<%_ if (!readOnly) { _%>
                "createLabel": "创建新 <%= entityClassHumanized %>",
                "createOrEditLabel": "创建或编辑 <%= entityClassHumanized %>",
<%_ } _%>
<%_ if (searchEngineAny) { _%>
                "search": "查找 <%= entityClassHumanized %>",
<%_ } _%>
                "notFound": "No <%= entityClassPluralHumanized %> found"
            },
<%_ if (!microserviceAppName && !readOnly) { _%>
            "created": "<%= entityClassHumanized %> {{ param }} 创建成功",
            "updated": "<%= entityClassHumanized %> {{ param }} 更新成功",
            "deleted": "<%= entityClassHumanized %> {{ param }} 删除成功",
<%_ } _%>
<%_ if (!readOnly) { _%>
            "delete": {
                "question": "你确定要删除 <%= entityClassHumanized %> {{ id }} 吗？"
            },
<%_ } _%>
            "detail": {
                "title": "<%= entityClassHumanized %>"
            }<% for (idx in fields) {
            if (typeof fields[idx].documentation !== 'undefined') ++helpBlocks; %>,
            "<%= fields[idx].fieldName %>": "<%= fields[idx].fieldNameHumanized %>"<% } %><% for (idx in relationships) { %>,
            "<%= relationships[idx].relationshipName %>": "<%= relationships[idx].relationshipNameHumanized %>"<% } if (helpBlocks > 0) { %>,
            "help": {<% for (idx in fields) {
                if (fields[idx].documentation) {
                    --helpBlocks; %>
                "<%= fields[idx].fieldName %>": "<%= fields[idx].documentation %>"<% if (helpBlocks > 0) { %>,<% }
                }
            } %>
            }<% } %>
        }
    }<% if (microserviceAppName && !readOnly) { %>,
    "<%= microserviceAppName %>": {
        "<%= entityTranslationKey %>" : {
            "created": "<%= entityClassHumanized %> {{ param }} 创建成功",
            "updated": "<%= entityClassHumanized %> {{ param }} 更新成功",
            "deleted": "<%= entityClassHumanized %> {{ param }} 删除成功"
        }
    }<% } %>
}
