Barış Soner Uşaklı
e841d59a67
feat: add translateKeys
3 years ago
Barış Soner Uşaklı
58b5781cea
feat: closes #10296
...
asset_base_url in nconf
keep assetBaseUrl in config for backwards compat
3 years ago
Barış Soner Uşaklı
8d316d1859
fix : #9934 , fix translator test
3 years ago
gasoved
b0a24d6dd5
refactor: var to const and let ( #9885 )
...
* refactor: var to const and let
* fix: missed global bootbox usage
* refactor: align with eslint expectations
3 years ago
Anton Grigoryev
342503e07a
Feat: Client-side hooks - replace window.trigger ( #9679 )
...
* feat/clientside-hooks: replace window.trigger with hooks.fire
* feat(clientside-hooks): Move hooks require to the top
* fix: simplifying complex logical expression
* fix: client-side hook for translator - post-review fixes
4 years ago
Barış Soner Uşaklı
344575dde1
feat: add hooks to language loading ( #9426 )
...
and flushNamespace method
4 years ago
Peter Jaszkowiak
cc9d6fd08b
chore: eslint max-len
4 years ago
Barış Soner Uşaklı
1590cdf19f
fix : #9206 , fix double escaped arguments
4 years ago
Opliko
6e43086558
resolve #8444 - Allow nested objects in translations ( #8793 )
...
* feat: #8444 Allow nested objects in translations
* feat: #8444 Allow nested objects in translations
* style: don't change formatting
* fix: don't use the first string match if key isn't finished
* feat: #8444 Allow nested objects in translations
* feat: #8444 Allow nested objects in translations
* style: don't change formatting
* fix: don't use the first string match if key isn't finished
* feat: add nested translations test
4 years ago
Barış Soner Uşaklı
a512d99472
refactor: remove unnecessary wrapper
4 years ago
Barış Soner Uşaklı
a05905f196
performance improvements ( #8795 )
...
* perf: nconf/winston/render
cache nconf.get calls
modify middleware.pageView to call next earlier
don't call winston.verbose on every hook see https://github.com/winstonjs/winston/issues/1669
translate header/footer separately and cache results for guests
* fix: copy paste fail
* refactor: style and fire hook only log in dev mode
* fix: cache key, header changes based on template
* perf: change replace
* fix: add missing await
* perf: category
* perf: lodash clone
* perf: remove escapeRegexChars
4 years ago
Barış Soner Uşaklı
8c019a6a3b
fix: timeago locale switch
4 years ago
Julian Lam
9adaccd036
feat: +assetBaseUrl, -l10BaseUrl, -requireBaseUrl
...
Additional base URLs were necessary for benchpress and translator,
and in order to not clutter the API response with needless one-
time use base URLs, I decided to use a single base that is used
by all of the services, assetBaseUrl.
5 years ago
Julian Lam
def16f9e97
feat: introduce overridable l10nBaseUrl config value
5 years ago
Barış Soner Uşaklı
8ddc8dd10f
refactor: make msg pretty
5 years ago
Barış Soner Uşaklı
764969ab29
feat: show language when key isn't found
5 years ago
Barış Soner Uşaklı
cb662e15ce
feat: improve grunt restart/rebuild speed
5 years ago
Barış Soner Uşaklı
c8fb7f9246
fix: escape register query param
5 years ago
Barış Soner Uşaklı
ca3be1f336
fix : #7974 ( #7976 )
5 years ago
Julian Lam
0921230976
fix(style): updated code to follow new eslint recommendations
...
Squashed commit of the following:
commit f9ce878b269b3568f0d649309aae1af4dcfdfeef
Author: Julian Lam <[email protected] >
Date: Tue Aug 13 14:30:46 2019 -0400
fix(style): updated code to follow new eslint recommendations
commit 80dd370e413f22badb96ff2138e7991dfff6d836
Author: Julian Lam <[email protected] >
Date: Tue Aug 13 14:14:58 2019 -0400
fix(deps): update dependency sitemap to v4
Squashed commit of the following:
commit f4dd9cabb21e26fdc21f8413be822ea7c64251f8
Author: Julian Lam <[email protected] >
Date: Tue Aug 13 11:33:05 2019 -0400
fix: resolved breaking changes from sitemap v4 upgrade
commit 9043415ee16dcc27a8dcc2e4479d1bc5e2d1b60e
Merge: e3352b272 72590b346
Author: Julian Lam <[email protected] >
Date: Tue Aug 13 11:09:55 2019 -0400
Merge branch 'master' into renovate/sitemap-4.x
commit e3352b272eb9400bdb00774973181397803765e4
Author: Renovate Bot <[email protected] >
Date: Mon Aug 12 07:59:05 2019 +0000
fix(deps): update dependency sitemap to v4
commit 8e3c0cdcae22acc32d352be8bb72d60e7502dbc5
Author: Renovate Bot <[email protected] >
Date: Fri Aug 9 00:49:51 2019 +0000
fix(deps): update dependency commander to v3
commit 2104449d38818f2fa4d44b3a58a0a168781acbfb
Author: Renovate Bot <[email protected] >
Date: Tue Aug 13 15:00:27 2019 +0000
fix(deps): update dependency mongodb to v3.3.0
commit d2937f446a21131c070ae5d0ff33d67cfe465b8c
Author: Barış Soner Uşaklı <[email protected] >
Date: Tue Aug 13 10:36:48 2019 -0400
feat: async/await admin/controllers
commit 1b97e8b199f960dc24e5722702f27499ae049914
Author: Misty (Bot) <[email protected] >
Date: Tue Aug 13 09:28:39 2019 +0000
Latest translations and fallbacks
commit 69a48957a2f0d23c4d194b664bda3a0431179c01
Author: Barış Soner Uşaklı <[email protected] >
Date: Mon Aug 12 21:56:09 2019 -0400
feat: async/await
commit b9b2a7e593a452de4bef6d0ab6abe368a3bdb8dd
Author: Barış Soner Uşaklı <[email protected] >
Date: Mon Aug 12 20:58:29 2019 -0400
feat: async/await refactor
controllers/accounts
commit a8d43a175974a0c8ae3dc132bf51a7ed9a4c6305
Author: Baris Usakli <[email protected] >
Date: Mon Aug 12 14:49:40 2019 -0400
feat: async/await controllers/accounts
commit 2f25aae57bf9dbe98d655276770e56bed9ec023b
Author: Barış Soner Uşaklı <[email protected] >
Date: Sun Aug 11 23:09:50 2019 -0400
fix : #7831 , fix pagination
convert to async/await
commit c9e83f2374572264855a04156278eef256b0a20c
Author: Barış Soner Uşaklı <[email protected] >
Date: Sun Aug 11 00:14:35 2019 -0400
fix: remove empty line
commit 30be91b26c4dd7583412c4e8d56e9c1688e48a44
Author: Barış Soner Uşaklı <[email protected] >
Date: Sun Aug 11 00:13:41 2019 -0400
fix: remove useless catchs and empty line
commit 2e4a71c0b6104738f15ffbfe3246105b922fdfb3
Author: Renovate Bot <[email protected] >
Date: Sat Aug 10 06:51:50 2019 +0000
chore(deps): update dependency eslint-config-airbnb-base to v14
6 years ago
yossizahn
1703233f48
fix : #7586 , switchTimeagoLanguage shouldn't discriminate against languages w/o shorthands
6 years ago
Barış Soner Uşaklı
ae779ea4f9
fix : #7334
6 years ago
Julian Lam
cee47f78b2
fix : #7289 timeago shorthand toggle fails on non-existant language
...
- Exposing timeagoCodes to frontend
- Timeago language and shorthand toggling will fall back to 'en'
if the requested language does not exist
6 years ago
Julian Lam
5f3d1c76c8
fix : #7038 , autoLocale logic not playing nicely with no-refresh auths ( #7059 )
...
* fix : #7038 , autoLocale logic not playing nicely with no-refresh auths
- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
webserver.js into new middleware method.
* style: tests, use lodash
* fix: timeago strings not switching languages on login or out
6 years ago
Baris Usakli
cd02e03f7b
don't crash if meta.config is undefined
6 years ago
Peter Jaszkowiak
ba619c7ec8
style(eslint): match operator-linebreak preferences
6 years ago
renovate[bot]
64b9dabff8
chore(deps): update dependency eslint-config-airbnb-base to v13 ( #6599 )
...
* chore(deps): update dependency eslint-config-airbnb-base to v13
* chore: #6599 , linting 😬
6 years ago
Barış Soner Uşaklı
7d627fe19a
#6338
7 years ago
Barış Soner Uşaklı
2f3b7279be
closes #6212
7 years ago
Barış Soner Uşaklı
c12b42180d
closes #6189
7 years ago
Barış Soner Uşaklı
cb4930dac8
remove version and environment from config
7 years ago
Barış Soner Uşaklı
63388be44c
closes #6084
7 years ago
Peter Jaszkowiak
189008af75
Optimize translator
...
- Use `slice` less
- Skip iterations with `indexOf`
7 years ago
Peter Jaszkowiak
190eea5691
Remove this useless check
7 years ago
Peter Jaszkowiak
46fafb20b9
Remove string.js dependency
7 years ago
Baris Usakli
7538210b07
#5772
...
load correct timeago settings on cold load instead of after page load
8 years ago
Barış Soner Uşaklı
b64ba40c67
closes #5772
8 years ago
Peter Jaszkowiak
542ae5e71f
Extract in-place translation from bootbox wrapper for use anywhere
8 years ago
barisusakli
08dd412896
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
...
# Conflicts:
# src/upgrade.js
8 years ago
Peter Jaszkowiak
9d8ff4ea3e
Fix images not displaying in signatures
8 years ago
barisusakli
e3205bcfad
merge
8 years ago
Peter Jaszkowiak
0fe10f5e86
Escape topic titles at the source, deduplicate
8 years ago
Julian Lam
a141835cf8
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
1fb48ef7a7
Fix #5592 ( #5593 )
...
* Fix #5592
Escape translation tokens in topic titles, descriptions, profile about, and post contents
* Fix tests
8 years ago
Peter Jaszkowiak
484a800327
Merge branch master into develop
8 years ago
Peter Jaszkowiak
980e9026f3
Fix #5588 , translator ignores unclosed tokens
8 years ago
Julian Lam
72e77772db
Merge branch 'master' into develop
8 years ago
Peter Jaszkowiak
93f38d4f30
ESlint no-multi-assign
...
and max-nested-callbacks, no-mixed-requires, max-statements-per-line
8 years ago
Peter Jaszkowiak
04bb6513b0
ESlint no-cond-assign, no-void, valid-jsdoc
8 years ago
Peter Jaszkowiak
1493afee2a
ESlint indent
8 years ago