Skip to content

Commit

Permalink
feat: tolgee cli 2 announcement (#2340)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Jun 4, 2024
1 parent 5daedbc commit fed1f92
Show file tree
Hide file tree
Showing 4 changed files with 346 additions and 811 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ enum class Announcement(
NEW_PRICING(parseTime("2024-02-01 00:00 UTC"), AnnouncementTarget.SELF_HOSTED),
FEATURE_AI_CUSTOMIZATION(parseTime("2024-03-05 00:00 UTC"), AnnouncementTarget.CLOUD),
FEATURE_VISUAL_EDITOR(parseTime("2024-05-01 00:00 UTC")),
FEATURE_CLI_2(parseTime("2024-08-01 00:00 UTC")),
;

companion object {
Expand Down
7 changes: 7 additions & 0 deletions webapp/src/component/layout/TopBanner/useAnnouncement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ export function useAnnouncement() {
link="https://tolgee.io/blog/releasing-visual-editor-and-formats-support"
/>
);
case 'FEATURE_CLI_2':
return (
<Announcement
content={<T keyName="announcement_cli_2" />}
link="https://tolgee.io/blog/cli-2-features"
/>
);

default:
assertUnreachable(value);
Expand Down
1 change: 1 addition & 0 deletions webapp/src/constants/GlobalValidationSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export class Validation {
.test({
name: 'language-tag-exists',
test: (value) => !existingTags?.includes(value!),
// @tolgee-key validation_language_tag_exists
message: t('validation_language_tag_exists'),
})
.matches(/^[^,]*$/, {
Expand Down
Loading

0 comments on commit fed1f92

Please sign in to comment.