This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-11
Channels
- # announcements (6)
- # babashka (7)
- # beginners (145)
- # biff (2)
- # calva (9)
- # cider (4)
- # circleci (9)
- # clj-commons (22)
- # clj-kondo (26)
- # cljs-dev (70)
- # cljsrn (4)
- # clojure (46)
- # clojure-australia (9)
- # clojure-europe (62)
- # clojure-nl (5)
- # clojure-norway (4)
- # clojure-spec (11)
- # clojure-uk (3)
- # clojurescript (18)
- # copenhagen-clojurians (1)
- # core-async (1)
- # cursive (13)
- # datahike (6)
- # datomic (47)
- # emacs (5)
- # events (2)
- # fulcro (13)
- # google-cloud (2)
- # gratitude (2)
- # helix (5)
- # honeysql (5)
- # hyperfiddle (31)
- # jobs (1)
- # jobs-discuss (6)
- # london-clojurians (1)
- # lsp (5)
- # off-topic (9)
- # polylith (12)
- # portal (18)
- # re-frame (5)
- # reagent (29)
- # releases (2)
- # shadow-cljs (43)
- # specter (1)
- # test-check (8)
- # vim (1)
- # xtdb (66)
What is the currently recommended way for handling internationalization in fulcro
? Specifically making text translations easy to bundle.
It allows you to write strings in code in your native lang, then extract them to gettext format. From there you can use nice tools like poedit to translate. Then you add those files to your project and they can serve out to client on alt lang selection.
RAD is designed and written to use that, and I recommend all fulcro-specific libs target that.
someday soon I’ll get back to polishing that lib, but it’s usable as-is, and is open to contributions
The RAD support for date/time (which you can use even if you don’t use other things in RAD) and the numerics (bigdec) normalization is also quite useful to throw in. I hand-wrote a compatibility layer for date/time formatting in RAD because the js-joda support was lacking. It’s a CLJC implementation that uses java’s support in CLJ, but uses the brower’s Intl support to format dates in CLJS. It’s not perfect since the JVM and browsers don’t have perfect agreement, but it’s pretty good. Pretty much the rest of date/time I lean on CLJC java-time, since that works CLJC perfectly except for the date formatting.
Is there a way I can expose Fulcro components to be used by a react application?
I think this is the section of the book you are looking for: https://book.fulcrologic.com/#_using_fulcro_component_classes_in_vanilla_js_detached_subtrees
That is a good section to read, but you might consider using hooks and use-component
as the mechanism now instead of the alt renderer
Cool… this it incredibly useful… thanks 🙂
@U0CKQ19AQ not sure why but your link did not work. The browser tells me it should be https://book.fulcrologic.com/#HooksUseComponent