Skip to content

Commit 92ceda2

Browse files
authored
Localize Share Conversation dialog (#733)
1 parent 92d00ad commit 92ceda2

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

app/views/conversations/_share_modal.html.erb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
>
77
<div class="modal-box max-w-2xl dark:bg-black">
88
<header class="font-bold text-lg mb-5">
9-
Share this conversation
9+
<%= t('app.share.title') %>
1010
</header>
1111

1212
<div class="space-y-4">
1313
<p class="text-gray-600 dark:text-gray-400">
14-
Share a publicly accessible link to this conversation. Anyone with the link will be able to view the conversation.
14+
<%= t('app.share.description') %>
1515
</p>
1616

1717
<div class="form-control">
1818
<label class="label">
19-
<span class="label-text">Shareable URL</span>
19+
<span class="label-text"><%= t('app.share.url') %></span>
2020
</label>
2121
<div class="flex gap-2">
2222
<input
@@ -32,24 +32,24 @@
3232
class="btn btn-primary"
3333
>
3434
<%= icon "clipboard", variant: :outline, size: 20 %>
35-
Copy
35+
<%= t('app.share.copy') %>
3636
</button>
3737
</div>
3838
<div
3939
data-share-target="copiedMessage"
4040
class="hidden text-sm text-green-600 dark:text-green-400 mt-2"
4141
>
42-
Copied to clipboard!
42+
<%= t('app.share.copied') %>
4343
</div>
4444
</div>
4545

4646
<div class="alert alert-warning">
4747
<%= icon "exclamation-triangle", variant: :outline, size: 20 %>
48-
<span>Anyone with this link can view this conversation. Be careful not to share sensitive information.</span>
48+
<span><%= t('app.share.warning') %></span>
4949
</div>
5050
</div>
5151
</div>
5252
<form method="dialog" class="modal-backdrop no-focus-outline">
53-
<button>close</button>
53+
<button><%= t('app.share.close') %></button>
5454
</form>
5555
</dialog>

config/locales/de.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@ de:
251251
created: "Dokument wurde erfolgreich erstellt."
252252
updated: "Dokument wurde erfolgreich aktualisiert."
253253
destroyed: "Dokument wurde erfolgreich gelöscht."
254+
share:
255+
title: "Diese Unterhaltung teilen"
256+
description: "Teilen Sie einen öffentlich zugänglichen Link zu dieser Konversation. Jeder mit diesem Link kann die Konversation ansehen."
257+
url: "Teilbare Link"
258+
copy: "Kopieren"
259+
copied: "In die Zwischenablage kopiert!"
260+
warning: "Jeder mit diesem Link kann diese Konversation ansehen. Achten Sie darauf, keine sensiblen Informationen zu teilen."
261+
close: "Schließen"
254262
helpers:
255263
messages:
256264
from_user: "Du"

config/locales/en.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,14 @@ en:
280280
created: "Document was successfully created."
281281
updated: "Document was successfully updated."
282282
destroyed: "Document was successfully destroyed."
283+
share:
284+
title: "Share this conversation"
285+
description: "Share a publicly accessible link to this conversation. Anyone with the link will be able to view the conversation."
286+
url: "Shareable URL"
287+
copy: "Copy"
288+
copied: "Copied to clipboard!"
289+
warning: "Anyone with this link can view this conversation. Be careful not to share sensitive information."
290+
close: "Close"
283291
helpers:
284292
messages:
285293
from_user: "You"

0 commit comments

Comments
 (0)