Skip to content

New option to exclude framework translations  #186

@thanosalexandris

Description

@thanosalexandris

Hey there.
Could it be easy to add an extra option in src/interfaces/plugin-options.ts like this

excludeFrameworkTranslations: boolean,

and then in src/vite.ts
to change it into

const excludeFrameworkTranslations = typeof options === 'string' ? options === 'lang' : options.excludeFrameworkTranslations ?? true
const frameworkLangPath = excludeFrameworkTranslations ? '' : 'vendor/laravel/framework/src/Illuminate/Translation/lang/'.replace('/', path.sep)

This way we'll be able to optionally skip framework translations, and having this php_en.json generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions