This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-23
Channels
- # announcements (1)
- # asami (2)
- # aws (15)
- # babashka (4)
- # beginners (42)
- # calva (8)
- # clj-kondo (7)
- # cljsrn (31)
- # clojure (64)
- # clojure-australia (4)
- # clojure-europe (40)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-uk (10)
- # clojured (1)
- # clojurescript (16)
- # conjure (4)
- # datomic (5)
- # defnpodcast (2)
- # events (1)
- # fulcro (61)
- # graphql (11)
- # honeysql (9)
- # jobs (3)
- # jobs-discuss (3)
- # lsp (65)
- # malli (3)
- # meander (4)
- # off-topic (5)
- # pathom (32)
- # podcasts-discuss (2)
- # polylith (2)
- # re-frame (30)
- # reitit (6)
- # remote-jobs (3)
- # ring (4)
- # shadow-cljs (19)
- # sql (28)
- # vim (1)
- # xtdb (21)
Hey guys! I'm looking for a recommendation for an M17n/internalisation library for Reagent. I'm mostly interested just in M17n, so just plain old translations, less bothered by full internalisation, date formats and such. Something light and simple preferably 🙏:skin-tone-3:
This isn't a library, but some macros/functions that we use at my work: https://www.isaksky.com/posts/macro-assisted-translations-in-clojurescript/
I can't recommend mozilla fluent enough. I am using it in a big project of mine and it has been a breeze. Interop very easily with js. https://github.com/projectfluent/fluent.js/ and https://github.com/projectfluent/fluent.js/tree/master/fluent-react
In Clojurescript 1.10.773, I could reliably tell whether a symbol sym
(at macro-expansion time) referred to a protocol by examining the following:
(:protocol-symbol (cljs.analyzer.api/resolve &env sym))
When I update to Clojurescript 1.10.866, this doesn't seem to work any longer. As far as I can tell, nothing obvious has changed in the code -- defprotocol
still attaches this data, and cljs.core
still https://github.com/clojure/clojurescript/blob/ac23fec265bdf0ca971eb35c16da4b59191da5ca/src/main/clojure/cljs/core.cljc#L1421. Is there a better / supported way to do this?Are you clearing the cache before building? It's been a while, but I remember some var information only being available when building from scratch
Yeah, unless I'm doing something very wrong, that's not the issue here; also, our CI also is failing on 866, and afaik it's building cacheless.
I've narrowed down the commit that breaks my tool to this one: https://github.com/clojure/clojurescript/commit/a8422ee060d7d98f7578c9acb2824a5e346e7958 I'll try to take time later to read through and understand how.
@U05224H0W Thank you!