@forsakringskassan/docs-generator 2.24.0 → 2.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-generator",
3
- "version": "2.24.0",
3
+ "version": "2.25.0",
4
4
  "description": "Documentation generator",
5
5
  "keywords": [
6
6
  "documentation"
@@ -89,7 +89,7 @@
89
89
 
90
90
  {% if doc.outline | length %}
91
91
  <details id="outline">
92
- <summary class="outline__heading">Innehåll</summary>
92
+ <summary class="outline__heading">{{ $t('outline.in-this-article') }}</summary>
93
93
  <ul>
94
94
  {% for heading in doc.outline %}
95
95
  <li><a href="#{{ heading.anchor }}">{{ heading.title | escape }}</a></li>
@@ -1,25 +1,29 @@
1
- {% set showAside = true %} {% extends "content-with-menu.template.html" %}
1
+ {% set showAside = true %}
2
+ {% extends "content-with-menu.template.html" %}
2
3
 
3
- <!-- prettier-ignore -->
4
4
  {% block aside %}
5
5
  <dl>
6
- <!-- prettier-ignore -->
7
6
  {% if doc.attributes.component %}
8
- <dt>Komponent</dt>
7
+ <dt>{{ $t('component.component') }}</dt>
9
8
  <dd>
10
- {% for component in doc.attributes.component %}
11
- <code>
9
+ <div class="docs-badge-list">
10
+ {% for component in doc.attributes.component %}
12
11
  {% if componentSourceUrl and componentSourceUrl(component) %}
13
- <a href="{{ componentSourceUrl(component) }}">{{ component.name }}</a>
14
- {% else %} {{ component.name }} {% endif %}
15
- </code>
16
- {% if not loop.last %}, {% endif %} {% endfor %}
12
+ <a class="docs-badge docs-badge--component docs-badge-link" href="{{ componentSourceUrl(component) }}">
13
+ {{ component.name }}
14
+ </a>
15
+ {% else %}
16
+ <div class="docs-badge docs-badge--component">
17
+ {{ component.name }}
18
+ </div>
19
+ {% endif %}
20
+ {% endfor %}
21
+ </div>
17
22
  </dd>
18
23
  {% endif %}
19
24
 
20
- <!-- prettier-ignore -->
21
25
  {% if doc.attributes.status %}
22
- <dt>Status</dt>
26
+ <dt>{{ $t('component.status') }}</dt>
23
27
  <dd>
24
28
  <div class="badge badge--{{ doc.attributes.badge }}">{{ doc.attributes.status }}</div>
25
29
  </dd>
@@ -27,7 +31,6 @@
27
31
  </dl>
28
32
  {% endblock %}
29
33
 
30
- <!-- prettier-ignore -->
31
34
  {% block content %}
32
35
  {{ doc.body | marked }}
33
36
  {% endblock %}
@@ -2,7 +2,7 @@
2
2
  <!-- [html-validate-disable-next wcag/h32 -- handled via script] -->
3
3
  <form id="search-form">
4
4
  <div class="text-field">
5
- <label for="search-field" class="label"> Sök </label>
5
+ <label for="search-field" class="label">{{ $t('search.title') }}</label>
6
6
  <div class="text-field__input-wrapper">
7
7
  <div class="text-field__icon-wrapper">
8
8
  <input
@@ -14,12 +14,12 @@
14
14
  type="text"
15
15
  class="text-field__input"
16
16
  maxlength="50"
17
- placeholder="Skriv för att börja söka"
17
+ placeholder="{{ $t('search.placeholder') }}"
18
18
  />
19
19
  </div>
20
20
  </div>
21
21
  </div>
22
22
  <div id="search-results"></div>
23
- <p><kbd>Esc</kbd> för att stänga <kbd>Pil upp/ner</kbd> för att navigera <kbd>Enter</kbd> för att välja</p>
23
+ <p>{{ $t('search.instructions') }}</p>
24
24
  </form>
25
25
  </dialog>
@@ -3,7 +3,7 @@
3
3
  <button class="text-field__input" type="submit">
4
4
  <svg focusable="false" class="icon button__icon">
5
5
  <use xlink:href="#docs-icon-search"></use></svg
6
- >Sök <kbd>ctrl-k</kbd>
6
+ >{{ $t('search.button') }} <kbd>ctrl-k</kbd>
7
7
  </button>
8
8
  </form>
9
9
  </div>