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/06 10:31:51 UTC

[GitHub] [apisix-dashboard] liuxiran commented on issue #331: Proposal: i18n

liuxiran commented on issue #331:
URL: https://github.com/apache/apisix-dashboard/issues/331#issuecomment-669849130


   Hi, I have a proposal the key can be like this :   [basicModule].[moduleName].[elementName].[...desc]
   
   1. basic keys (the first tow levels) divide according to the directory structure:
   eg: app.pwa,   page.consumer,   component.actionBar
   
   2. sub keys divide according to element +description
   eg: app.pwa.message.offline,   component.actionBar.button.nextStep
   If the the text is the part of a element, we can use [elementName.props]
   eg: page.consumer.proTable.columns.username
   
   3. common texts, we should not repeat in other part, we can divide them to component.global.xxx
   eg: component.global.button.okText,   component.global.status.loading  and so on
   
   
   


----------------------------------------------------------------
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