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
7ded0f77
Commit
7ded0f77
authored
Nov 23, 2021
by
Lee Tickett
Committed by
Russell Dickenson
Nov 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary/duplicate js translation doc
parent
d800938c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
doc/development/i18n/externalization.md
doc/development/i18n/externalization.md
+3
-5
No files found.
doc/development/i18n/externalization.md
View file @
7ded0f77
...
@@ -133,11 +133,9 @@ You can mark that content for translation with:
...
@@ -133,11 +133,9 @@ You can mark that content for translation with:
The
`~/locale`
module exports the following key functions for externalization:
The
`~/locale`
module exports the following key functions for externalization:
-
`__()`
(double underscore parenthesis)
-
`__()`
Mark content for translation (double underscore parenthesis).
-
`s__()`
(namespaced double underscore parenthesis)
-
`s__()`
Mark namespaced content for translation (s double underscore parenthesis).
-
`__()`
Mark content for translation (note the double underscore).
-
`n__()`
Mark pluralized content for translation (n double underscore parenthesis).
-
`s__()`
Mark namespaced content for translation
-
`n__()`
Mark pluralized content for translation
```
javascript
```
javascript
import
{
__
,
s__
,
n__
}
from
'
~/locale
'
;
import
{
__
,
s__
,
n__
}
from
'
~/locale
'
;
...
...
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