nyavro / i18nPlugin

Intellij idea i18next support plugin
MIT License
70 stars 11 forks source link

Can you add support for umijs/plus-locale #58

Open DreamParadise opened 3 years ago

DreamParadise commented 3 years ago

Folder Structure:

src
  - locales
    - en-US
      general.ts
      login.ts
      ...
    - zh-CN
      general.ts
      login.ts
      ...
    en-US.ts
    zh-CN.ts

Usage: in ***.tsx

const Com: FC<Props> = () => {
  const intl =  useIntl();
  return (
    <span>{intl.formatMessage({ id: 'general.dept.name' }}</span>
  );
}
nyavro commented 3 years ago

Could you please publish the sample content of general.ts?

DreamParadise commented 3 years ago

Could you please publish the sample content of general.ts?

export default {
    'general.enable': 'Enable',
    'general.notEnable': 'Not Enable',
    'general.createdBy': 'Create By',
    'general.paramName': 'Parameter Name',
}
nyavro commented 3 years ago

Hi! I'm having troubles configuring sample umi/plus-locale project. Could you point to some opensource project using umijs plus-locale? That would be very helpful. Regards, Evgeniy

nyavro commented 3 years ago

Ok, got one project with umijs plus-locale configured. As far as I see the basic support for code-to-translation and translation-to-code navigation is already implemented out of the box of Intellij IDEA. What features missing in standard IDEA you are interested in? Code completion/code extraction/hints/missing keys highlighter? Please let me know. Regards

DreamParadise commented 3 years ago

Ok, got one project with umijs plus-locale configured. As far as I see the basic support for code-to-translation and translation-to-code navigation is already implemented out of the box of Intellij IDEA. What features missing in standard IDEA you are interested in? Code completion/code extraction/hints/missing keys highlighter? Please let me know. Regards

This is the interface shows in IDEA image

This is the interface shows in vs code (This is what I want) image