Skip to content

Commit 18b5a51

Browse files
fix: Translate error message
1 parent 460b45c commit 18b5a51

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

i18n/translations/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@
9898
"error.content.lock.replace": "The version is locked and cannot be replaced",
9999
"error.content.lock.update": "The version is locked and cannot be updated",
100100

101+
"error.content.unlock.invalidVersion": "Only the changes version can be unlocked",
102+
101103
"error.entries.max.plural": "You must not add more than {max} entries",
102104
"error.entries.max.singular": "You must not add more than one entry",
103105
"error.entries.min.plural": "You must add at least {min} entries",

src/Content/VersionRules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static function unlock(
153153

154154
if ($version->id()->is('changes') === false) {
155155
throw new LogicException(
156-
message: 'Only the changes version can be unlocked'
156+
key: 'content.unlock.invalidVersion'
157157
);
158158
}
159159

0 commit comments

Comments
 (0)