BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e1d22a05
Commit
e1d22a05
authored
May 04, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated JS object for Vue methods
parent
628d641b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
translate.js
app/assets/javascripts/vue_shared/translate.js
+3
-3
No files found.
app/assets/javascripts/vue_shared/translate.js
View file @
e1d22a05
...
...
@@ -13,7 +13,7 @@ export default (Vue) => {
@param text The text to be translated
@returns {String} The translated text
**/
__
(
text
)
{
return
__
(
text
);
}
,
__
,
/**
Translate the text with a number
if the number is more than 1 it will use the `pluralText` translation.
...
...
@@ -24,7 +24,7 @@ export default (Vue) => {
@param count Number to decide which translation to use (eg. 2)
@returns {String} Translated text with the number replaced (eg. '2 days')
**/
n__
(
text
,
pluralText
,
count
)
{
return
n__
(
text
,
pluralText
,
count
);
}
,
n__
,
/**
Translate context based text
Either pass in the context translation like `Context|Text to translate`
...
...
@@ -36,7 +36,7 @@ export default (Vue) => {
@param key Is the dynamic variable you want to be translated
@returns {String} Translated context based text
**/
s__
(
keyOrContext
,
key
)
{
return
s__
(
keyOrContext
,
key
);
}
,
s__
,
},
});
};
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