Mark Florian
50910d501f
Remove unnecessary bind call
...
This was creating, calling and throwing away a brand new bound function
on every single call to `gettext`. This is wasteful, as the original
function can be called directly in such a way that `this` is bound
correctly.
2019-05-17 11:29:40 +08:00
🌴🇿🇦 Lukas Eipert (OOO until Summit)
8f9442fcdf
Frontend: Proper gettext extraction with gettext-extractor
2018-08-16 19:03:57 +00:00
Lukas Eipert
c98212e663
fix spaced-comment
2018-05-29 18:42:34 +02:00
Winnie Hellmann
4f73e14f2c
Add createDateTimeFormat to format dates based on locale
2017-12-18 11:13:41 +01:00
Tim Zallmann
0f6d20e394
Made the insertion of the English Translation File conditional + removed window.translations from the global object to save some memory
2017-10-06 10:03:56 +02:00
Tim Zallmann
412571a4df
Load only the currently needed JS locale file
2017-10-04 11:23:52 +00:00
Tim Zallmann
23e6b17b3e
Merge branch 'winh-sprintf' into 'master'
...
Add basic sprintf implementation to JavaScript
See merge request gitlab-org/gitlab-ce!14506
2017-10-03 15:56:40 +00:00
Winnie Hellmann
b509588a28
Add basic sprintf implementation to JavaScript
2017-10-03 14:46:19 +02:00
Winnie Hellmann
0612ee64bc
Fix linting errors in locale/index.js
2017-09-27 13:55:41 +02:00
Phil Hughes
b7f01f2b18
Moved all the text translation manipulation into the locale index file
...
Commented the translation methods
2017-05-03 20:52:18 +01:00
Phil Hughes
9c78b17a11
Fixed karma failure
2017-05-03 13:33:12 +01:00
Phil Hughes
93f27958d0
Updated some JS translate methods to correctly take in context
2017-05-03 12:02:26 +01:00
Phil Hughes
d14397ff95
Fixed context translation
...
Fixes CSS widths when translating
2017-04-28 10:49:28 +01:00
Phil Hughes
0242c4dfc9
Changed JS translation functions
...
Added context function
2017-04-26 17:03:06 +01:00
Phil Hughes
dc5136a70d
Merge remote-tracking branch 'origin/28433-internationalise-cycle-analytics-page' into js-translations
2017-04-21 09:16:05 +01:00
Phil Hughes
372841975f
Default the language to en - more useful for specs
2017-04-18 16:29:22 +01:00
Phil Hughes
90ba69d224
Started internationalising cycyle analytics
2017-04-15 16:07:31 +01:00