Mykolas
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
And this is how a basic form for creating looks like:
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
This is the usage:
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
Ok so created a shared embed like so:
But the problem is still having the hardcoded locales.
I mean as a workaround i can have that as a list of all available locales which for now is limited and then only show the relevant ones for the tenant?
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
Hmm ok back at this, i have an interesting case and trying to figure out how to best do this:
Octafest is a multi-tenant thing. And translations are really tenant bound and dynamic.
For e.g.
Tenant A has two languages English and Lithuanian. Default is Lithuanian.
Tenant B has three languages English, Italian and German. Default is english.
Since json columns don't really need a defined structure the way i've done it in php land is just have json columns for the translated stuff and then show the ui according to the tenants settings.
Tenant settings define what languages they support and the default language.
That in turn determines what get's populated in the translated field column form.
Also i've switched out the relationship, so it's not:
But:
Any help is greatly appreciated
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
It should have an empty value for each locale as i have a tabs thing where you can switch between languages. I'll have a look at the add_form thing 🙂 thank you! Ash is amazing 🙂
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
Any help is greatly appreciated.
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
I can't get this to render the form though i've tried adding forms: [auto?: true] but nothing happens:
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
Yeah the whole point is to have client facing editable content for pages etc.
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
because this is just for adding the translated fields.
I then need to modify the create changeset to include the embeds with validations
add read actions which accept locale and move the fields into top level access
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
I'm thinking if it's worth the effort it's not that hard to do what you've shown and this adds quite a bit of magic that you can't see.
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
Or is there a better/cleaner way to insert embeded schemas?
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
Does this look like i'm moving in the right direction?
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
now on to figuring out how to embed this, any pointers?
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
ok got this to build 😄
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
but this fails with
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
here's my field:
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
as i want to do this:
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
where can i find a simple example implementing DSL.Entity
56 replies
AEAsh Elixir
•Created by Deleted User on 2/7/2023 in #support
I18n within resources
where would i start?
56 replies