Skip to content

Commit

Permalink
♻️ organize locales files (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
karinevieira committed May 30, 2024
1 parent 5097cd1 commit cb9d7c8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ pt-BR:
navbar_component:
home: Início
search: Buscar
new: Novo post
new: Nova publicação
profile: Perfil
sign_out: Sair
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pt-BR:
edit: Editar
delete: Deletar
likes_count:
one: "%{count} Like"
other: "%{count} Likes"
one: "%{count} curtida"
other: "%{count} curtidas"
6 changes: 3 additions & 3 deletions config/locales/pt-BR/models/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ pt-BR:

post:
subtitle: Legenda
image: Imagem
image: Foto
user: Usuário

user_profile:
user: Usuário
username: "@"
display_name: Nome do usuário
bio: "Sobre"
display_name: Nome
bio: Sobre
avatar: Foto de perfil

user:
Expand Down
4 changes: 2 additions & 2 deletions config/locales/pt-BR/pages/posts.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pt-BR:
posts:
new_page:
new_post: Novo post
new_post: Novo publicação
image: Foto
subtitle: Legenda
create_post: Criar post
create_post: Criar publicação
2 changes: 1 addition & 1 deletion config/locales/pt-BR/pages/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pt-BR:
edit_profile: Editar perfil
avatar: Foto de perfil
display_name: Nome
bio: Bio
bio: Sobre
update_profile: Atualizar perfil
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
rendered = render_inline(described_class.new(record: invalid_post))

expect(rendered).to have_text("Usuário é obrigatório")
.and(have_text("Imagem não pode ficar em branco"))
.and(have_text("Foto não pode ficar em branco"))
end
end

0 comments on commit cb9d7c8

Please sign in to comment.