forked from hapifhir/org.hl7.fhir.core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request hapifhir#1586 from hapifhir/do-20240327-language-t…
…ranslation-coverage Add coverage test to output missing translations + summary
- Loading branch information
Showing
6 changed files
with
200 additions
and
18 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
.azure/i18n-coverage-table/generate-i18n-coverage-table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import numpy as np | ||
import pandas as pd | ||
import matplotlib.pyplot as plt | ||
|
||
#define figure and axes | ||
fig, ax = plt.subplots(1,1) | ||
|
||
#hide the axes | ||
fig.patch.set_visible(False) | ||
ax.axis('off') | ||
ax.axis('tight') | ||
|
||
#read data | ||
df = pd.read_csv('i18n-coverage.csv') | ||
#create table | ||
table = ax.table(cellText=df.values, colLabels=df.columns, loc='center') | ||
|
||
table.scale(1, 4) | ||
table.auto_set_font_size(False) | ||
table.set_fontsize(14) | ||
|
||
fig.tight_layout() | ||
fig.set_figheight(2) | ||
fig.set_figwidth(4) | ||
|
||
|
||
ax.set_title('Internationalization Phrase Coverage by Locale') | ||
|
||
fig = plt.gcf() | ||
|
||
plt.savefig('i18n-coverage-table.png', | ||
bbox_inches='tight', | ||
dpi=150 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,6 @@ jobs: | |
id: bidi_check | ||
uses: HL7/[email protected] | ||
env: | ||
IGNORE: dummy-package.tgz$ | ||
IGNORE: i18n-coverage-table\.png$|dummy-package.tgz$ | ||
- name: Get the output time | ||
run: echo "The time was ${{ steps.bidi_check.outputs.time }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Locale,Complete #,Complete % | ||
de,860,78% | ||
es,731,66% | ||
ja,910,82% | ||
nl,853,77% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters