fix: 翻译 API 模板

This commit is contained in:
Zhicheng WANG 2019-01-04 14:06:54 +08:00
parent 30a630b314
commit b86481285a

View File

@ -32,7 +32,7 @@
<h2>{$ itemType $}</h2> <h2>{$ itemType $}</h2>
<table class="is-full-width list-table {$ cssClass $}-table"> <table class="is-full-width list-table {$ cssClass $}-table">
<thead> <thead>
<tr><th>Name</th><th>Description</th></tr> <tr><th>名称</th><th>说明</th></tr>
</thead> </thead>
<tbody> <tbody>
{% for item in items %} {% for item in items %}
@ -43,7 +43,7 @@
</a> </a>
</td> </td>
<td> <td>
{% if item.deprecated !== undefined %}{$ ('**Deprecated:** ' + item.deprecated) | marked $}{% endif %} {% if item.deprecated !== undefined %}{$ ('**已弃用:** ' + item.deprecated) | marked $}{% endif %}
{$ item.shortDescription | marked $} {$ item.shortDescription | marked $}
</td> </td>
</tr> </tr>
@ -59,25 +59,25 @@
{% block details %} {% block details %}
{% block additional %}{% endblock %} {% block additional %}{% endblock %}
{% include "includes/description.html" %} {% include "includes/description.html" %}
{$ memberHelpers.renderProperties(doc.staticProperties, 'static-properties', 'static-property', 'Static properties') $} {$ memberHelpers.renderProperties(doc.staticProperties, 'static-properties', 'static-property', '静态属性') $}
{$ memberHelpers.renderMethodDetails(versionInfo, doc.staticMethods, 'static-methods', 'static-method', 'Static methods') $} {$ memberHelpers.renderMethodDetails(versionInfo, doc.staticMethods, 'static-methods', 'static-method', '静态方法') $}
{% if doc.constructorDoc %} {% if doc.constructorDoc %}
<h2 id="constructor">构造函数</h2> <h2 id="constructor">构造函数</h2>
{$ memberHelpers.renderMethodDetail(versionInfo, doc.constructorDoc, 'constructor') $}{% endif %} {$ memberHelpers.renderMethodDetail(versionInfo, doc.constructorDoc, 'constructor') $}{% endif %}
{$ memberHelpers.renderProperties(doc.properties, 'instance-properties', 'instance-property', 'Properties') $} {$ memberHelpers.renderProperties(doc.properties, 'instance-properties', 'instance-property', '属性') $}
{$ memberHelpers.renderMethodDetails(versionInfo, doc.methods, 'instance-methods', 'instance-method', 'Methods') $} {$ memberHelpers.renderMethodDetails(versionInfo, doc.methods, 'instance-methods', 'instance-method', '方法') $}
{% if doc.ngmoduleOptions.providers %} {% if doc.ngmoduleOptions.providers %}
{$ renderTable(doc.ngmoduleOptions.providers, 'providers', 'Providers', 'Provider') $} {$ renderTable(doc.ngmoduleOptions.providers, 'providers', '提供商', '提供商') $}
{% endif %} {% endif %}
{% if doc.directives.length %} {% if doc.directives.length %}
{$ renderExports(doc.directives, 'directive', 'Directives') $} {$ renderExports(doc.directives, 'directive', '指令') $}
{% endif %} {% endif %}
{% if doc.pipes.length %} {% if doc.pipes.length %}
{$ renderExports(doc.pipes, 'pipe', 'Pipes') $} {$ renderExports(doc.pipes, 'pipe', '管道') $}
{% endif %} {% endif %}
{% endblock %} {% endblock %}