fix(editor): the delete hint names « Modifier » before « Retirer »
This commit is contained in:
1 parent
28e298ac56
commit
08fab77d0e
4 files changed
+23
-6
No files matched your search
@@ -1250,7 +1250,7 @@ export const en: Dict = {
|
||||
'editor.references.none_doi': 'None',
|
||||
'editor.references.none_url': 'None',
|
||||
'editor.references.new_tab': '(new tab)',
|
||||
'editor.references.delete_hint': "To delete this reference, first remove each of its citations: “Go to”, then “Remove” in the finding's or family's detail.",
|
||||
'editor.references.delete_hint': 'To delete this reference, first remove each of its citations: “Go to”, then “Edit” and “Remove” in the finding or the family.',
|
||||
'editor.references.add': 'Add a reference',
|
||||
'editor.references.added': 'Reference added: {citation}',
|
||||
'editor.references.added_show': 'Show',
|
||||
|
||||
@@ -1281,7 +1281,7 @@ export const fr: Dict = {
|
||||
'editor.references.none_doi': 'Aucun',
|
||||
'editor.references.none_url': 'Aucune',
|
||||
'editor.references.new_tab': '(nouvel onglet)',
|
||||
'editor.references.delete_hint': 'Pour supprimer cette référence, retirez d\'abord chacune de ses citations : « Aller à », puis « Retirer » dans le détail du constat ou de la famille.',
|
||||
'editor.references.delete_hint': 'Pour supprimer cette référence, retirez d\'abord chacune de ses citations : « Aller à », puis « Modifier » et « Retirer » dans le constat ou la famille.',
|
||||
'editor.references.add': 'Ajouter une référence',
|
||||
'editor.references.added': 'Référence ajoutée : {citation}',
|
||||
'editor.references.added_show': 'Afficher',
|
||||
|
||||
@@ -16,3 +16,19 @@ describe('i18n dicts', () => {
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
describe('the delete hint of a cited reference (final review rev 4, item 2)', () => {
|
||||
it('names the buttons of each step: « Aller à », « Modifier », « Retirer »', () => {
|
||||
for (const dict of [fr, en]) {
|
||||
const hint = dict['editor.references.delete_hint']
|
||||
const labels = [
|
||||
dict['editor.references.go_to'],
|
||||
dict['editor.findings.edit'],
|
||||
dict['editor.action.remove'],
|
||||
]
|
||||
const at = labels.map((label) => hint.indexOf(label))
|
||||
expect(at.every((i) => i >= 0)).toBe(true)
|
||||
expect([...at].sort((a, b) => a - b)).toEqual(at)
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user