You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to make all text on the site editable. This can be achieved by setting a variable in the orb object.
Add this to app/config/env.yml
localize: true
Then in lib/serve.js send options to orb.
In orb.js, send localize to i18n.t.
In 18n.t wrap the translation in a t tag: <t data-key="pages.index.hero">Translation here</t>
In the browser, make it editable by toggling content-editable on the t tag. Set up a server action to store the changes, but also keep the in localStorage client side to persist them.
A script can unload the changes from the database and write them to file.
An alternative is to actually load the translations from database. Creating another task on that.
The text was updated successfully, but these errors were encountered:
The idea is to make all text on the site editable. This can be achieved by setting a variable in the orb object.
Add this to
app/config/env.yml
Then in
lib/serve.js
send options toorb
.In
orb.js
, sendlocalize
toi18n.t
.In
18n.t
wrap the translation in a t tag:<t data-key="pages.index.hero">Translation here</t>
In the browser, make it editable by toggling
content-editable
on the t tag. Set up a server action to store the changes, but also keep the in localStorage client side to persist them.A script can unload the changes from the database and write them to file.
An alternative is to actually load the translations from database. Creating another task on that.
The text was updated successfully, but these errors were encountered: