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

是否可以增加国际化的支持 #159

Open
sunnymaple opened this issue Dec 24, 2024 · 4 comments
Open

是否可以增加国际化的支持 #159

sunnymaple opened this issue Dec 24, 2024 · 4 comments

Comments

@sunnymaple
Copy link

比如springboot国际化配置文件中,中文:user.name=姓名,英文配置文件中user.name=name,那么在实体类属性中使用@ExcelProperty("${user.name}") 是否可以当前用户请求头中的Accept-Language,实现国际化动态表头。但怎么说呢,fastexcel毕竟是个独立的工具,不依赖于spring或者springboot生态,或者有什么好的解决方案来实现国际化

@sunnymaple
Copy link
Author

期待更新

@sunnymaple
Copy link
Author

@ExcelProperty注解的i18n()方法是不是有点多余,而且使用起来也麻烦。如果使用国际化,肯定都使用,很少或者几乎不可能只有某个或者某些属性使用国际化吧,是否可以考虑和@value注解一样,使用${}来读取国际化配置文件中的属性

@poo0054
Copy link

poo0054 commented Dec 30, 2024

这个想法很好,不知道是否有这个方面的计划,如果有的话请交给我。
@psxjoy

@psxjoy
Copy link
Collaborator

psxjoy commented Dec 30, 2024

这个想法很好,不知道是否有这个方面的计划,如果有的话请交给我。 @psxjoy

You’ve applied quite a few bug fixes and feature requests. I recommend focusing on the issues already assigned to you first. If you encounter blockers or other challenges, feel free to reach out. :)

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

No branches or pull requests

4 participants
@psxjoy @sunnymaple @poo0054 and others