Need help with Data Table internationalization. #2636
-
Hello, I have a case where I need to translate table headers based on the language selected. Currently I'm using this approach.
![]()
![]()
![]() I also recently found this new idea #409 (comment) Which one is a better approach ? Thanks a lot for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hello! So, I know this issue was opened almost a year ago, but I'm facing the same issue as you. Then I wanted to ask, what happened? Did you find a solution? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, I know this issue was opened almost a year ago, and I am facing the same problem. However, the solution provided did not work for me, so I came up with a simpler alternative using next-intl. Here’s what I did:
|
Beta Was this translation helpful? Give feedback.
@fitimbytyqi option two really smart idea , i use it and its work perfectly
example :
brands-table.tsx
brands-columns.tsx