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

fix(configure): add entry to metaFiles #132

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

RomainLanz
Copy link
Member

Hey there! 👋🏻

This PR adds the lang directory to the metaFiles key in adonisrc.ts file.
It is needed to copy the files in a production build.

Closes #131

@Julien-R44
Copy link
Member

Lezgo

@Julien-R44 Julien-R44 merged commit df1bb7a into develop Mar 6, 2024
12 checks passed
@Julien-R44 Julien-R44 deleted the fix/meta-files branch March 6, 2024 10:07
@@ -42,5 +42,6 @@ export async function configure(command: Configure) {
*/
await codemods.updateRcFile((rcFile) => {
rcFile.addProvider('@adonisjs/i18n/i18n_provider')
rcFile.addMetaFile('resources/lang/**/*.json', false)
Copy link
Member

Choose a reason for hiding this comment

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

Should be both .json and .yaml :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in 23a191a

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.

Translation files are not copied to build folder
3 participants