Skip to content

Commit

Permalink
fix: reconcile + prettify (#368)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ecospark[bot] and github-actions[bot] authored Mar 1, 2024
1 parent 1a827c9 commit 4b8584b
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 16 deletions.
6 changes: 4 additions & 2 deletions locales/be-BY/src/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,18 @@ export default removeUndefinedLocaleResources({
/** The text when an unpublish operation failed */
'panes.document-operation-results.operation-error_unpublish':
'Падчас спробы зняць гэты дакумент з публікацыі адбылася памылка. Звычайна гэта азначае, што ёсць іншыя дакументы, якія на яго спасылаюцца.',
/** The text when a generic operation succeded (fallback, generally not shown) */
/** The text when a generic operation succeeded (fallback, generally not shown) */
'panes.document-operation-results.operation-success':
'Паспяхова выканана {{context}} над дакументам',
/** The text when a delete operation succeded */
/** The text when a delete operation succeeded */
'panes.document-operation-results.operation-success_delete': 'Дакумент быў паспяхова выдалены',
/** The text when a discard changes operation succeeded */
'panes.document-operation-results.operation-success_discardChanges':
'Усе змены з моманту апошняй публікацыі былі адменены. Адхілены чарнавік яшчэ можна аднавіць з гісторыі',
/** The text when a publish operation succeeded */
'panes.document-operation-results.operation-success_publish': 'Дакумент быў апублікаваны',
/** The text when a restore operation succeeded */
'panes.document-operation-results.operation-success_restore': undefined, // '<Strong>{{title}}</Strong> was restored'
/** The text when an unpublish operation succeeded */
'panes.document-operation-results.operation-success_unpublish':
'Дакумент быў зняты з публікацыі. Чарнавік быў створаны з апошняй апублікаванай версіі.',
Expand Down
10 changes: 9 additions & 1 deletion locales/be-BY/src/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,14 +1020,16 @@ export default removeUndefinedLocaleResources({

/** Label for action to manage members of the current studio project */
'presence.action.manage-members': 'Кіраванне ўдзельнікамі',
/** Accessibility label for Avatar Stack */
/** Accessibility label for presence menu button */
'presence.aria-label': 'Хто тут',
/** Message description for when no one else is currently present */
'presence.no-one-else-description': 'Запрасіце людзей у праект, каб бачыць іх статус анлайн.',
/** Message title for when no one else is currently present */
'presence.no-one-else-title': 'Тут нікога няма',
/** Message for when a user is not in a document (displayed in the global presence menu) */
'presence.not-in-a-document': 'Не ў дакуменце',
/** Tooltip content text for presence menu button */
'presence.tooltip-content': undefined, // 'Who is here'

/** Fallback title shown when a preview does not provide a title */
'preview.default.title-fallback': 'Без назвы',
Expand Down Expand Up @@ -1464,6 +1466,9 @@ export default removeUndefinedLocaleResources({
/** Accessibility label for the search results section, shown when the user has typed valid terms */
'search.search-results-aria-label': 'Вынікі пошуку',

/** Accessibility label for the navbar status button */
'status-button.aria-label': undefined, // 'Configuration status'

/** Description for error when the timeline for the given document can't be loaded */
'timeline.error.load-document-changes-description':
'Транзакцыі гісторыі дакументаў не былі загружаны.',
Expand Down Expand Up @@ -1525,6 +1530,9 @@ export default removeUndefinedLocaleResources({
/** Label for missing change version for timeline menu dropdown are showing */
'timeline.since-version-missing': 'З: невядомая версія',

/**Aria label for the action buttons in the PTE toolbar */
'toolbar.portable-text.action-button-aria-label': undefined, // '{{action}}'

/** Label for button showing the free trial days left */
'user-menu.action.free-trial_one': '{{count}} дзень засталося ў пробным перыядзе',
/** Label for the button showed after trial ended */
Expand Down
6 changes: 4 additions & 2 deletions locales/es-ES/src/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,17 +338,19 @@ export default removeUndefinedLocaleResources({
/** The text when an unpublish operation failed */
'panes.document-operation-results.operation-error_unpublish':
'Ocurrió un error al intentar despublicar este documento. Esto generalmente significa que hay otros documentos que lo referencian.',
/** The text when a generic operation succeded (fallback, generally not shown) */
/** The text when a generic operation succeeded (fallback, generally not shown) */
'panes.document-operation-results.operation-success':
'Se realizó con éxito {{context}} en el documento',
/** The text when a delete operation succeded */
/** The text when a delete operation succeeded */
'panes.document-operation-results.operation-success_delete':
'El documento fue eliminado con éxito',
/** The text when a discard changes operation succeeded */
'panes.document-operation-results.operation-success_discardChanges':
'Todos los cambios desde la última publicación han sido descartados. El borrador descartado todavía puede ser recuperado desde el historial',
/** The text when a publish operation succeeded */
'panes.document-operation-results.operation-success_publish': 'El documento fue publicado',
/** The text when a restore operation succeeded */
'panes.document-operation-results.operation-success_restore': undefined, // '<Strong>{{title}}</Strong> was restored'
/** The text when an unpublish operation succeeded */
'panes.document-operation-results.operation-success_unpublish':
'El documento fue despublicado. Se ha creado un borrador a partir de la última versión publicada.',
Expand Down
10 changes: 9 additions & 1 deletion locales/es-ES/src/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1058,14 +1058,16 @@ export default removeUndefinedLocaleResources({

/** Label for action to manage members of the current studio project */
'presence.action.manage-members': 'Gestionar miembros',
/** Accessibility label for Avatar Stack */
/** Accessibility label for presence menu button */
'presence.aria-label': 'Quién está aquí',
/** Message description for when no one else is currently present */
'presence.no-one-else-description': 'Invita a personas al proyecto para ver su estado en línea.',
/** Message title for when no one else is currently present */
'presence.no-one-else-title': 'No hay nadie más aquí',
/** Message for when a user is not in a document (displayed in the global presence menu) */
'presence.not-in-a-document': 'No está en un documento',
/** Tooltip content text for presence menu button */
'presence.tooltip-content': undefined, // 'Who is here'

/** Fallback title shown when a preview does not provide a title */
'preview.default.title-fallback': 'Sin título',
Expand Down Expand Up @@ -1526,6 +1528,9 @@ export default removeUndefinedLocaleResources({
/** Accessibility label for the search results section, shown when the user has typed valid terms */
'search.search-results-aria-label': 'Resultados de búsqueda',

/** Accessibility label for the navbar status button */
'status-button.aria-label': undefined, // 'Configuration status'

/** Description for error when the timeline for the given document can't be loaded */
'timeline.error.load-document-changes-description':
'Las transacciones del historial del documento no se han visto afectadas.',
Expand Down Expand Up @@ -1587,6 +1592,9 @@ export default removeUndefinedLocaleResources({
/** Label for missing change version for timeline menu dropdown are showing */
'timeline.since-version-missing': 'Desde: versión desconocida',

/**Aria label for the action buttons in the PTE toolbar */
'toolbar.portable-text.action-button-aria-label': undefined, // '{{action}}'

/** Label for button showing the free trial days left */
'user-menu.action.free-trial_one': '{{count}} día restante en el período de prueba',
'user-menu.action.free-trial_other': '{{count}} días restantes en el período de prueba',
Expand Down
6 changes: 4 additions & 2 deletions locales/hr-HR/src/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,17 @@ export default removeUndefinedLocaleResources({
/** The text when an unpublish operation failed */
'panes.document-operation-results.operation-error_unpublish':
'Došlo je do greške pri pokušaju povlačenja ovog dokumenta. To obično znači da postoje drugi dokumenti koji upućuju na njega.',
/** The text when a generic operation succeded (fallback, generally not shown) */
/** The text when a generic operation succeeded (fallback, generally not shown) */
'panes.document-operation-results.operation-success': 'Uspješno izveden {{context}} na dokumentu',
/** The text when a delete operation succeded */
/** The text when a delete operation succeeded */
'panes.document-operation-results.operation-success_delete': 'Dokument je uspješno izbrisan',
/** The text when a discard changes operation succeeded */
'panes.document-operation-results.operation-success_discardChanges':
'Sve promjene od posljednjeg objavljivanja su sada odbačene. Odbačeni nacrt još uvijek se može oporaviti iz povijesti',
/** The text when a publish operation succeeded */
'panes.document-operation-results.operation-success_publish': 'Dokument je objavljen',
/** The text when a restore operation succeeded */
'panes.document-operation-results.operation-success_restore': undefined, // '<Strong>{{title}}</Strong> was restored'
/** The text when an unpublish operation succeeded */
'panes.document-operation-results.operation-success_unpublish':
'Dokumentu je poništena objava. Nacrt je stvoren iz posljednje objavljene verzije.',
Expand Down
10 changes: 9 additions & 1 deletion locales/hr-HR/src/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ export default removeUndefinedLocaleResources({

/** Label for action to manage members of the current studio project */
'presence.action.manage-members': 'Upravljanje članovima',
/** Accessibility label for Avatar Stack */
/** Accessibility label for presence menu button */
'presence.aria-label': 'Tko je ovdje',
/** Message description for when no one else is currently present */
'presence.no-one-else-description':
Expand All @@ -1061,6 +1061,8 @@ export default removeUndefinedLocaleResources({
'presence.no-one-else-title': 'Nitko drugi nije ovdje',
/** Message for when a user is not in a document (displayed in the global presence menu) */
'presence.not-in-a-document': 'Nije u dokumentu',
/** Tooltip content text for presence menu button */
'presence.tooltip-content': undefined, // 'Who is here'

/** Fallback title shown when a preview does not provide a title */
'preview.default.title-fallback': 'Bez naslova',
Expand Down Expand Up @@ -1510,6 +1512,9 @@ export default removeUndefinedLocaleResources({
/** Accessibility label for the search results section, shown when the user has typed valid terms */
'search.search-results-aria-label': 'Rezultati pretraživanja',

/** Accessibility label for the navbar status button */
'status-button.aria-label': undefined, // 'Configuration status'

/** Description for error when the timeline for the given document can't be loaded */
'timeline.error.load-document-changes-description':
'Transakcije povijesti dokumenta nisu bile pogođene.',
Expand Down Expand Up @@ -1571,6 +1576,9 @@ export default removeUndefinedLocaleResources({
/** Label for missing change version for timeline menu dropdown are showing */
'timeline.since-version-missing': 'Od: nepoznata verzija',

/**Aria label for the action buttons in the PTE toolbar */
'toolbar.portable-text.action-button-aria-label': undefined, // '{{action}}'

/** Label for button showing the free trial days left */
'user-menu.action.free-trial_one': 'Preostao {{count}} dan probnog roka',
'user-menu.action.free-trial_other': 'Preostalo {{count}} dana probnog roka',
Expand Down
6 changes: 4 additions & 2 deletions locales/hu-HU/src/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,16 +339,18 @@ export default removeUndefinedLocaleResources({
/** The text when an unpublish operation failed */
'panes.document-operation-results.operation-error_unpublish':
'Hiba történt a dokumentum közzétételének megszüntetése közben. Ez általában azt jelenti, hogy más dokumentumok hivatkoznak rá.',
/** The text when a generic operation succeded (fallback, generally not shown) */
/** The text when a generic operation succeeded (fallback, generally not shown) */
'panes.document-operation-results.operation-success':
'Sikeresen végrehajtott {{context}} a dokumentumon',
/** The text when a delete operation succeded */
/** The text when a delete operation succeeded */
'panes.document-operation-results.operation-success_delete': 'A dokumentum sikeresen törölve',
/** The text when a discard changes operation succeeded */
'panes.document-operation-results.operation-success_discardChanges':
'Az utolsó közzététel óta végzett összes változtatás elvetésre került. Az elvetett vázlat még visszaállítható a történetből',
/** The text when a publish operation succeeded */
'panes.document-operation-results.operation-success_publish': 'A dokumentum közzétéve',
/** The text when a restore operation succeeded */
'panes.document-operation-results.operation-success_restore': undefined, // '<Strong>{{title}}</Strong> was restored'
/** The text when an unpublish operation succeeded */
'panes.document-operation-results.operation-success_unpublish':
'A dokumentum közzétételét megszüntették. A legutóbbi közzétett verzióból vázlat készült.',
Expand Down
10 changes: 9 additions & 1 deletion locales/hu-HU/src/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ export default removeUndefinedLocaleResources({

/** Label for action to manage members of the current studio project */
'presence.action.manage-members': 'Tagok kezelése',
/** Accessibility label for Avatar Stack */
/** Accessibility label for presence menu button */
'presence.aria-label': 'Ki van itt',
/** Message description for when no one else is currently present */
'presence.no-one-else-description':
Expand All @@ -1066,6 +1066,8 @@ export default removeUndefinedLocaleResources({
'presence.no-one-else-title': 'Senki más nincs itt',
/** Message for when a user is not in a document (displayed in the global presence menu) */
'presence.not-in-a-document': 'Nincs dokumentumban',
/** Tooltip content text for presence menu button */
'presence.tooltip-content': undefined, // 'Who is here'

/** Fallback title shown when a preview does not provide a title */
'preview.default.title-fallback': 'Cím nélkül',
Expand Down Expand Up @@ -1516,6 +1518,9 @@ export default removeUndefinedLocaleResources({
/** Accessibility label for the search results section, shown when the user has typed valid terms */
'search.search-results-aria-label': 'Keresési eredmények',

/** Accessibility label for the navbar status button */
'status-button.aria-label': undefined, // 'Configuration status'

/** Description for error when the timeline for the given document can't be loaded */
'timeline.error.load-document-changes-description':
'A dokumentum előzmény tranzakciói nem érintettek.',
Expand Down Expand Up @@ -1577,6 +1582,9 @@ export default removeUndefinedLocaleResources({
/** Label for missing change version for timeline menu dropdown are showing */
'timeline.since-version-missing': 'Ettől: ismeretlen verzió',

/**Aria label for the action buttons in the PTE toolbar */
'toolbar.portable-text.action-button-aria-label': undefined, // '{{action}}'

/** Label for button showing the free trial days left */
'user-menu.action.free-trial_one': '{{count}} nap van hátra a próbaidőből',
'user-menu.action.free-trial_other': '{{count}} nap van hátra a próbaidőből',
Expand Down
6 changes: 4 additions & 2 deletions locales/nn-NO/src/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,17 @@ export default removeUndefinedLocaleResources({
/** The text when an unpublish operation failed */
'panes.document-operation-results.operation-error_unpublish':
'Ein feil oppstod under forsøket på å avpublisere dette dokumentet. Dette betyr vanlegvis at det er andre dokument som refererer til det.',
/** The text when a generic operation succeded (fallback, generally not shown) */
/** The text when a generic operation succeeded (fallback, generally not shown) */
'panes.document-operation-results.operation-success': 'Utførte {{context}} på dokumentet',
/** The text when a delete operation succeded */
/** The text when a delete operation succeeded */
'panes.document-operation-results.operation-success_delete': 'Dokumentet blei sletta',
/** The text when a discard changes operation succeeded */
'panes.document-operation-results.operation-success_discardChanges':
'Alle endringar sidan siste publisering har no blitt forkasta. Det forkasta utkastet kan framleis bli henta tilbake frå historikken',
/** The text when a publish operation succeeded */
'panes.document-operation-results.operation-success_publish': 'Dokumentet blei publisert',
/** The text when a restore operation succeeded */
'panes.document-operation-results.operation-success_restore': undefined, // '<Strong>{{title}}</Strong> was restored'
/** The text when an unpublish operation succeeded */
'panes.document-operation-results.operation-success_unpublish':
'Dokumentet blei avpublisert. Eit utkast har blitt oppretta frå den siste publiserte versjonen.',
Expand Down
10 changes: 9 additions & 1 deletion locales/nn-NO/src/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1052,14 +1052,16 @@ export default removeUndefinedLocaleResources({

/** Label for action to manage members of the current studio project */
'presence.action.manage-members': 'Administrer medlemmar',
/** Accessibility label for Avatar Stack */
/** Accessibility label for presence menu button */
'presence.aria-label': 'Kven er her',
/** Message description for when no one else is currently present */
'presence.no-one-else-description': 'Inviter folk til prosjektet for å sjå deira online status.',
/** Message title for when no one else is currently present */
'presence.no-one-else-title': 'Ingen andre er her',
/** Message for when a user is not in a document (displayed in the global presence menu) */
'presence.not-in-a-document': 'Ikkje i eit dokument',
/** Tooltip content text for presence menu button */
'presence.tooltip-content': undefined, // 'Who is here'

/** Fallback title shown when a preview does not provide a title */
'preview.default.title-fallback': 'Utan tittel',
Expand Down Expand Up @@ -1506,6 +1508,9 @@ export default removeUndefinedLocaleResources({
/** Accessibility label for the search results section, shown when the user has typed valid terms */
'search.search-results-aria-label': 'Søkjeresultat',

/** Accessibility label for the navbar status button */
'status-button.aria-label': undefined, // 'Configuration status'

/** Description for error when the timeline for the given document can't be loaded */
'timeline.error.load-document-changes-description':
'Dokumenthistorikktransaksjonane har ikkje blitt påverka.',
Expand Down Expand Up @@ -1567,6 +1572,9 @@ export default removeUndefinedLocaleResources({
/** Label for missing change version for timeline menu dropdown are showing */
'timeline.since-version-missing': 'Sidan: ukjend versjon',

/**Aria label for the action buttons in the PTE toolbar */
'toolbar.portable-text.action-button-aria-label': undefined, // '{{action}}'

/** Label for button showing the free trial days left */
'user-menu.action.free-trial_one': '{{count}} dag att i prøveperioden',
'user-menu.action.free-trial_other': '{{count}} dagar att i prøveperioden',
Expand Down
2 changes: 1 addition & 1 deletion src/api/autoTranslate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function autoTranslate(options: AutoTranslateOptions): Promise<numb
const {locales} = await getOrderedResources()

// Filter out locales that are not requested
const targetLocaleIds = targetLocales?.map(id => id.toLowerCase())
const targetLocaleIds = targetLocales?.map((id) => id.toLowerCase())
const filteredLocales = locales.filter((locale) => {
return !targetLocaleIds || targetLocaleIds.includes(locale.id.toLowerCase())
})
Expand Down

0 comments on commit 4b8584b

Please sign in to comment.