NYCPlanning / labs-applicant-portal

NYC Planning's zoning application platform. Allows New Yorkers to apply and pay for zoning permits online.
1 stars 0 forks source link

Look into ember-intl for managing copy #324

Open allthesignals opened 4 years ago

allthesignals commented 4 years ago

https://ember-intl.github.io/ember-intl/versions/master/docs/guide/translating-text#t

Research how others have dealt with this?

bfreeds commented 4 years ago

The Helsinki Full Stack course, though built in React / Gastby, uses this pattern for managing content. In this case, they do have 3 languages so they're using I18n features.

See here for an example of how they are importing their content and using in templates. Here is an example of a content.json file being used to hydrate one of the pages.

allthesignals commented 4 years ago

Nice... I did a little "spike" on it a few days ago. We use a lot of components for icons (as Andy pointed out). I made a wrapper solution here: https://github.com/ember-intl/ember-intl/issues/715#issuecomment-631827298.

The biggest snag for us is the fact that we use components for icons, but this gets around it.

You can add HTML in everything.