refine icon indicating copy to clipboard operation
refine copied to clipboard

[FEAT] i18n option when using cli to create project

Open BlackBearFTW opened this issue 9 months ago • 1 comments

Is your feature request related to a problem? Please describe.

I have to setup i18n next manually each time.

Describe alternatives you've considered

No response

Additional context

No response

Describe the thing to improve

I would like the create-refine cli have an option to automatically include i18n-next, so I won't have to set this up manually each time.

BlackBearFTW avatar May 04 '24 21:05 BlackBearFTW

@BlackBearFTW thanks for the issue. We are open to contributions for this one. We have similar examples with react-router and antd.

BatuhanW avatar Jun 21 '24 08:06 BatuhanW

Just linked this issue in a PR and I want to clarify the progress on this. Previously, we had i18n option in create-refine-app but decided to remove it due to increased complexity and due to the nature of i18n having project specific requirements. Adding this complexity just to handle essential keys that Refine uses wasn't able to justify the required maintenance 😅

We've added refine add provider i18n command to generate a demo i18nProvider which makes it easy to integrate with any library and custom implementation. Yet, this command was missing the translation file that includes essential keys that Refine uses by default. In #6196 we're also creating a locale/en.json that includes all the keys Refine uses and some additional keys to hint how Refine's i18n keys are generated.

In the future we'll update this issue when we have any updates 🙏

aliemir avatar Jul 26 '24 18:07 aliemir

Improvements related to i18n is released with the latest version of @refinedev/cli 🙏

aliemir avatar Aug 06 '24 12:08 aliemir