Skip to content
Open
6 changes: 3 additions & 3 deletions apps/web/src/locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6741,10 +6741,10 @@
"vaultTimeoutRangeError": {
"message": "Vault timeout is not within allowed range."
},
"disablePersonalVaultExport": {
"message": "Remove individual vault export"
"disableExport": {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Finding 1: Key renamed but 67 other locale files not updated

Renaming this key from disablePersonalVaultExport to disableExport will break translations in all non-English locales. The old key still exists in 67 other messages.json files:

apps/web/src/locales/ar/messages.json
apps/web/src/locales/de/messages.json
apps/web/src/locales/es/messages.json
... (64 more files)

Options:

  1. Update all 68 locale files - Rename the key in every messages.json file (keep existing translations)
  2. Revert key change - Keep disablePersonalVaultExport as the key, only update the English message

Since the message content changed ("Remove individual vault export" β†’ "Remove export"), Option 1 is more appropriate as it signals to translators that retranslation is needed.

"message": "Remove export"
},
"disablePersonalVaultExportDescription": {
"disableExportDescription": {
"message": "Do not allow members to export data from their individual vault."
},
"vaultExportDisabled": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
import { SharedModule } from "@bitwarden/web-vault/app/shared";

export class DisablePersonalVaultExportPolicy extends BasePolicyEditDefinition {
name = "disablePersonalVaultExport";
description = "disablePersonalVaultExportDescription";
name = "disableExport";
description = "disableExportDescription";
type = PolicyType.DisablePersonalVaultExport;
component = DisablePersonalVaultExportPolicyComponent;
}
Expand Down
Loading