Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
95f8cb39
Commit
95f8cb39
authored
Nov 19, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use i18n for aria labels
parent
f779f2b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/snippets/components/snippet_blob_view.vue
...ets/javascripts/snippets/components/snippet_blob_view.vue
+1
-1
app/views/shared/snippets/_embed.html.haml
app/views/shared/snippets/_embed.html.haml
+1
-1
No files found.
app/assets/javascripts/snippets/components/snippet_blob_view.vue
View file @
95f8cb39
...
...
@@ -90,7 +90,7 @@ export default {
};
</
script
>
<
template
>
<figure
class=
"file-holder snippet-file-content"
:aria-label=
"__(
`Code snippet`
)"
>
<figure
class=
"file-holder snippet-file-content"
:aria-label=
"__(
'Code snippet'
)"
>
<blob-header
:blob=
"blob"
:active-viewer-type=
"viewer.type"
...
...
app/views/shared/snippets/_embed.html.haml
View file @
95f8cb39
...
...
@@ -17,5 +17,5 @@
=
embedded_raw_snippet_button
(
@snippet
,
blob
)
=
embedded_snippet_download_button
(
@snippet
,
blob
)
%figure
.file-holder.snippet-file-content
{
"aria-label"
=>
"Code snippet"
}
%figure
.file-holder.snippet-file-content
{
"aria-label"
=>
_
(
'Code snippet'
)
}
=
render
'projects/blob/viewer'
,
viewer:
blob
.
simple_viewer
,
load_async:
false
,
external_embed:
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment