refactor: remove duplicate translation keys
- Remove create_post (use new_post instead) - Remove no_posts_status (simplify empty state) - Show create button on all empty states - Hide plus icon on desktop calendar button Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
93c245989a
commit
0e6540bda0
7 changed files with 8 additions and 14 deletions
|
|
@ -4,9 +4,7 @@
|
|||
'title' => 'Posts',
|
||||
'all_posts' => 'All Posts',
|
||||
'new_post' => 'New Post',
|
||||
'create_post' => 'Create Post',
|
||||
'no_posts' => 'No posts found',
|
||||
'no_posts_status' => 'No :status posts yet.',
|
||||
'start_creating' => 'Start by creating your first post.',
|
||||
'manage_posts' => 'Manage all your posts',
|
||||
'delete_confirm' => 'Are you sure you want to delete this post?',
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -4,9 +4,7 @@
|
|||
'title' => 'Posts',
|
||||
'all_posts' => 'Todos os Posts',
|
||||
'new_post' => 'Novo Post',
|
||||
'create_post' => 'Criar Post',
|
||||
'no_posts' => 'Nenhum post encontrado',
|
||||
'no_posts_status' => 'Nenhum post :status ainda.',
|
||||
'start_creating' => 'Comece criando seu primeiro post.',
|
||||
'manage_posts' => 'Gerencie todos os seus posts',
|
||||
'delete_confirm' => 'Tem certeza que deseja excluir este post?',
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
return [
|
||||
'select_workspace' => 'Selecionar workspace',
|
||||
'create_workspace' => 'Criar workspace',
|
||||
'create_post' => 'Criar post',
|
||||
'create_post' => 'Novo post',
|
||||
'profile' => 'Perfil',
|
||||
'log_out' => 'Sair',
|
||||
|
||||
|
|
|
|||
|
|
@ -295,7 +295,7 @@ const formatTime = (scheduledAt: string): string => {
|
|||
</Tabs>
|
||||
<Link :href="storePost.url()" method="post">
|
||||
<Button size="sm" class="lg:size-default">
|
||||
<IconPlus class="h-4 w-4 lg:mr-2" />
|
||||
<IconPlus class="h-4 w-4 lg:hidden" />
|
||||
<span class="hidden lg:inline">{{ $t('calendar.new_post') }}</span>
|
||||
</Button>
|
||||
</Link>
|
||||
|
|
@ -479,4 +479,4 @@ const formatTime = (scheduledAt: string): string => {
|
|||
</div>
|
||||
</div>
|
||||
</AppLayout>
|
||||
</template>
|
||||
</template>
|
||||
|
|
@ -186,14 +186,12 @@ const handleDelete = (post: Post) => {
|
|||
<IconFileText class="h-12 w-12 text-muted-foreground" />
|
||||
<h3 class="mt-4 text-lg font-semibold">{{ $t('posts.no_posts') }}</h3>
|
||||
<p class="mt-2 text-sm text-muted-foreground">
|
||||
{{ currentStatus ? $t('posts.no_posts_status', {
|
||||
status: $t(`posts.status.${currentStatus}`)
|
||||
}) : $t('posts.start_creating') }}
|
||||
{{ $t('posts.start_creating') }}
|
||||
</p>
|
||||
<Link v-if="!currentStatus" :href="storePost.url()" method="post" class="mt-4">
|
||||
<Link :href="storePost.url()" method="post" class="mt-4">
|
||||
<Button>
|
||||
<IconPlus class="h-4 w-4" />
|
||||
{{ $t('posts.create_post') }}
|
||||
{{ $t('posts.new_post') }}
|
||||
</Button>
|
||||
</Link>
|
||||
</CardContent>
|
||||
|
|
|
|||
Loading…
Reference in a new issue