You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/08/10 05:38:14 UTC

[GitHub] [apisix-dashboard] liuxiran removed a comment on issue #332: Use auto load i18n

liuxiran removed a comment on issue #332:
URL: https://github.com/apache/apisix-dashboard/issues/332#issuecomment-671160851


   > Only locales under /src/pages would work as far as I know, you could have a test :D
   
   I tried to do i18n in src/helps.tsx, which is not under src/pages
   It worked by using `formatMessage` directly, which is not recommended, but the recommended way: useIntl is a react hook, only can be used in a React function component or a custom React Hook function.  so some locales such as notification msg in functions could not work. 
   
   do you mean this?
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org