Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add description field to new feature form #259

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

sagar110599
Copy link
Contributor

No description provided.

<textarea nz-input formControlName="description" placeholder="Description">
</textarea>
</nz-form-control>
</nz-form-item>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, thank you @sagar110599 , may I ask you to do one more thing? We need to support i18n for all labels, we are using the official @angular/localize package. Can you modify this block of code like this?

      <nz-form-item>
        <nz-form-label i18n="@@common.description">Description</nz-form-label>
        <nz-form-control nzHasFeedback nzErrorTip="Cannot exceed 512 characters" i18n-nzErrorTip="@@ff.description.cannot-exceed-512-characters">
          <textarea nz-input formControlName="description" i18n-placeholder="@@common.description" placeholder="Description">
          </textarea>
        </nz-form-control>
      </nz-form-item>

After that, please run: npm run i18n, this would generate the i18n resources, don't worry about the translation, we can do it afterwards.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cosmos-explorer , After updating the HTML as suggested and running the command npm run i18n following files got updated which are seen in screenshot. Do i need to commit those as well??
image

Copy link
Contributor

@cosmos-explorer cosmos-explorer Mar 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sagar110599 , Yes, those files are the translation files, they need to be committed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated commit as per suggestions.

@cosmos-explorer cosmos-explorer changed the title Add description field to new feature form ✨ Add description field to new feature form Mar 5, 2023
@cosmos-explorer
Copy link
Contributor

@all-contributors
please add @sagar110599 for code

@allcontributors
Copy link
Contributor

@cosmos-explorer

I've put up a pull request to add @sagar110599! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants