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
0
Merge Requests
0
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
Boxiang Sun
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/vue_shared/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) => {
...
@@ -13,7 +13,7 @@ export default (Vue) => {
@param text The text to be translated
@param text The text to be translated
@returns {String} The translated text
@returns {String} The translated text
**/
**/
__
(
text
)
{
return
__
(
text
);
}
,
__
,
/**
/**
Translate the text with a number
Translate the text with a number
if the number is more than 1 it will use the `pluralText` translation.
if the number is more than 1 it will use the `pluralText` translation.
...
@@ -24,7 +24,7 @@ export default (Vue) => {
...
@@ -24,7 +24,7 @@ export default (Vue) => {
@param count Number to decide which translation to use (eg. 2)
@param count Number to decide which translation to use (eg. 2)
@returns {String} Translated text with the number replaced (eg. '2 days')
@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
Translate context based text
Either pass in the context translation like `Context|Text to translate`
Either pass in the context translation like `Context|Text to translate`
...
@@ -36,7 +36,7 @@ export default (Vue) => {
...
@@ -36,7 +36,7 @@ export default (Vue) => {
@param key Is the dynamic variable you want to be translated
@param key Is the dynamic variable you want to be translated
@returns {String} Translated context based text
@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