Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add database fields error key with not en locale #44

Open
pavelmgn opened this issue Aug 20, 2022 · 0 comments
Open

Add database fields error key with not en locale #44

pavelmgn opened this issue Aug 20, 2022 · 0 comments

Comments

@pavelmgn
Copy link

pavelmgn commented Aug 20, 2022

image

Hi, locale ru ~dev-main

Winter\Builder\Behaviors\IndexModelFormOperations:221

$fieldTypes = array_merge(array_keys($controls['Standard']), array_keys($controls['Widgets']));

Standard and Widgets keys apparently taken from lang file

image

I'm not sure but this might work

$standardKey = \Illuminate\Support\Facades\Lang::get('winter.builder::lang.form.control_group_standard');
$widgetKey = \Illuminate\Support\Facades\Lang::get('winter.builder::lang.form.control_group_widgets');
$fieldTypes = array_merge(array_keys($controls[$standardKey]), array_keys($controls[$widgetKey]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants