pt-BR: override the equipment-profile strings instead of inheriting them
The new equipment strings landed in pt.js only, so pt-BR inherited European wording — «guillemets», 'A mostrar', 'Ginásio', 'tens' — and the locale's own guard test caught it. Adds Brazilian overrides (você, 'Academia', 'Excluir perfil?', curly double quotes) and re-baselines the inheritance fingerprint: the one newly inherited entry is !14's note placeholder, which reads the same in both variants ('anilha' is current usage in Brazil too).
This commit is contained in:
1 parent
7f0afae228
commit
f37448aece
2 files changed
+24
-4
No files matched your search
@@ -27,11 +27,11 @@ describe('Brazilian Portuguese locale', () => {
|
||||
.sort(byCodeUnit)
|
||||
const fingerprint = createHash('sha256').update(JSON.stringify(inherited)).digest('hex')
|
||||
|
||||
expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(242)
|
||||
expect(inherited).toHaveLength(412)
|
||||
expect(Object.keys(PT_BR_OVERRIDES)).toHaveLength(260)
|
||||
expect(inherited).toHaveLength(413)
|
||||
// If this fails, review the changed keys and wording before accepting a new hash. From
|
||||
// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list
|
||||
expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('ae2c8df077f5c4e80be84e07176291eebfac6d60c9503b0f13dd31809a3bfa12')
|
||||
expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('241f027658796cc753f7f81f9e7511c02cc93c4d4480e98c532fe7b47f331beb')
|
||||
})
|
||||
|
||||
test('does not leak European Portuguese UI terms', () => {
|
||||
|
||||
Reference in new issue
Block a user