Skip to content

Commit

Permalink
🌍 Run translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Shana Moore committed Dec 7, 2023
1 parent f6e2454 commit eb15fd7
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/concerns/video_embed_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ module VideoEmbedBehavior
validates :video_embed,
format: {
with: %r{(http://|https://)(www\.)?(player\.vimeo\.com|youtube\.com/embed)},
message: ->(object, data) do
message: lambda do |_object, _data|
I18n.t('errors.messages.valid_embed_url', default: 'must be a valid YouTube or Vimeo Embed URL.')
end
end
},
if: :video_embed?

Expand Down
3 changes: 3 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
de:
errors:
messages:
valid_embed_url: "muss eine gültige YouTube- oder Vimeo-Einbettungs-URL sein."
activefedora:
models:
cdl: CDL
Expand Down
3 changes: 3 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
es:
errors:
messages:
valid_embed_url: "debe ser una URL de incrustación válida de YouTube o Vimeo."
activefedora:
models:
cdl: CDL
Expand Down
3 changes: 3 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
fr:
errors:
messages:
valid_embed_url: "doit être une URL d'incorporation valide de YouTube ou Vimeo."
activefedora:
models:
cdl: CDL
Expand Down
3 changes: 3 additions & 0 deletions config/locales/it.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
it:
errors:
messages:
valid_embed_url: "deve essere un URL di incorporamento valido di YouTube o Vimeo."
activefedora:
models:
cdl: CDL
Expand Down
3 changes: 3 additions & 0 deletions config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
pt-BR:
errors:
messages:
valid_embed_url: "deve ser uma URL de incorporação válida do YouTube ou Vimeo."
activefedora:
models:
cdl: CDL
Expand Down
3 changes: 3 additions & 0 deletions config/locales/zh.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
zh:
errors:
messages:
valid_embed_url: "必须是有效的YouTube或Vimeo嵌入URL。"
activefedora:
models:
cdl: CDL
Expand Down

0 comments on commit eb15fd7

Please sign in to comment.