i18nPlugin icon indicating copy to clipboard operation
i18nPlugin copied to clipboard

Can you add support for umijs/plus-locale

Open DreamParadise opened this issue 4 years ago • 5 comments

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>
  );
}

DreamParadise avatar Sep 23 '20 03:09 DreamParadise

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

nyavro avatar Oct 20 '20 11:10 nyavro

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',
}

DreamParadise avatar Oct 21 '20 00:10 DreamParadise

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 avatar Nov 17 '20 12:11 nyavro

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

nyavro avatar Nov 18 '20 11:11 nyavro

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

DreamParadise avatar Jan 05 '21 08:01 DreamParadise