Skip to content

Conversation

@brianjhanson
Copy link
Contributor

Biting off a bit less than #18005 — moves the installer to Inertia. Still a lot of plumbing included in this one, but an easier first step.

Comment on lines +87 to +89
$this->loadViewsFrom("{$this->root}/resources/views", 'c');

Vite::useHotFile("{$this->root}/resources/hot");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have this one as well https://github.com/craftcms/cms/blob/6.x/src/Twig/TwigServiceProvider.php#L15

I'd probably add a ViewServiceProvider and merge some of the things into that.

Comment on lines +44 to +48

public static function cpLocale(): string
{
return config('app.locale', 'en-US');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's app()->getLocale() you can use globally.

Ran into performance issues due to the number of items in the locales list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants