fix(i18n): correct reviewed pt-BR instructions
This commit is contained in:
1 parent
3d3e44c973
commit
dc3fafc6ef
6 files changed
+83
-50
No files matched your search
@@ -32,8 +32,24 @@ describe('Brazilian Portuguese exercise instructions', () => {
|
||||
expect(step.trim(), `${id} step ${index + 1}`).not.toBe('')
|
||||
expect(step, `${id} step ${index + 1}`).not.toBe(exercise.st[index])
|
||||
expect(step, `${id} step ${index + 1}`).not.toMatch(/(?:^|[^\p{L}])(?:the|your|with|from|towards?|repeat|desired|starting|slowly|hold|while|then|back|straight|ground|feet|hands|body|legs|arms|knees|shoulders)(?=$|[^\p{L}])/iu)
|
||||
expect(step, `${id} step ${index + 1}`).not.toMatch(/(?:^|[^\p{L}])(?:ginásio|anca|abdómen|gémeos|ecrã|core|banda|piso|omoplata|peso de mão|barra de elevações|pegada por cima|pegada invertida|bola suíça)(?=$|[^\p{L}])/iu)
|
||||
expect(step, `${id} step ${index + 1}`).not.toMatch(/(?:^|[^\p{L}])(?:ginásio|anca|abdómen|gémeos|ecrã|core|banda|piso|omoplata|peso de mão|barra de elevações|pegada por cima|pegada invertida|pegada inversa|bola suíça)(?=$|[^\p{L}])/iu)
|
||||
expect(step, `${id} step ${index + 1}`).not.toMatch(/flexion\p{L}*\s+(?:a\s+|o\s+|os\s+|um\s+|uma\s+)?(?:barra|pesos?|halter(?:es)?|mão)(?=$|[^\p{L}])/iu)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
test('does not replace kettlebells with dumbbells', () => {
|
||||
for (const exercise of EXDB) {
|
||||
exercise.st.forEach((step, index) => {
|
||||
if (/kettlebells?/iu.test(step)) {
|
||||
expect(ptBR[exercise.id][index], `${exercise.id} step ${index + 1}`).toMatch(/kettlebells?/iu)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
test('uses wrist extension for reverse wrist curls', () => {
|
||||
const reverseWristCurlIds = ['0079', '0082', '0104', '0210', '0224', '0358', '0367', '0368', '0385', '0771', '0994', '1441']
|
||||
reverseWristCurlIds.forEach(id => expect(ptBR[id].join(' '), id).toMatch(/estend\p{L}*(?: lentamente)? (?:o |os )?punhos?/iu))
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user