Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/multi language commitizen #1328

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

Closed

Conversation

Copy link

@Vlor999 Vlor999 commented Jan 2, 2025
edited
Loading

Description

As I said previously I made mistakes with the .github that I removed by mistake. I think that now the feature may work perfectly, I hope so in fact. If there is somme issues, please say it to me. You can easily add new languages but the most common languages are here.

Checklist

  • Add test cases to all the changes you introduce
  • Run ./scripts/format and ./scripts/test locally to ensure this change passes linter check and test
  • Test the changes on the local machine manually
  • Update the documentation for the changes (Not sure)

Expected behavior

I think that this feature is a way to make this extension a way most powerful and more useful for everyone.

Steps to Test This Pull Request

  1. install the current version
  2. poetry install
  3. poetry shell
  4. Make a changement
  5. git add .
  6. python3.X commitizen/__main__.py -language fr commit here fr is just an example you can put any format. X must be changed with the version you are using.
  7. Appreciate
  8. If you are using cz in it is in production : cz -language fr commit

Additional context

It must be good for the main part

...isplay informations
this is just a first version that is not yet efficient and must be implemented to be more efficient
egstion des differnts porbleme, il faut encore gerer les tests
corrcet the part of code that do not matched
J ai corrige le format de cz afin d y introduire le langage
BREAKING CHANGE:
test to be sure that all the case are looked. The language option give the oppotunity to choose on wich language you want to display infomation during the commit
Copy link
Author

@Vlor999 Vlor999 left a comment

Choose a reason for hiding this comment

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

I think that you should review : https://github.com/commitizen-tools/commitizen/pull/1328/files. This is the last version and I think that it must work perfectly.

Copy link
Member

Lee-W commented Jan 30, 2025

Got it. In that case, I'll close this one

@Lee-W Lee-W closed this Jan 30, 2025
Copy link
Member

Lee-W commented Jan 30, 2025

opps, close the wrong one

@Lee-W Lee-W reopened this Jan 30, 2025
@@ -0,0 +1,151 @@
prefix_en=Select the type of change you are committing
Copy link
Member

Choose a reason for hiding this comment

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

I think we should have one file per language

args: [ "--write-changes" ]
additional_dependencies:
- tomli
exclude: "commitizen/cz/conventional_commits/\\.cache_multilanguage\\.txt"
Copy link
Member

Choose a reason for hiding this comment

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

Why do we want to exclude it?


def questions(self) -> Questions:
language = self.language
print(language)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
print(language)

@@ -0,0 +1,69 @@
import os

# mypy: ignore-errors
Copy link
Member

Choose a reason for hiding this comment

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

Why do we ignore errors?

Copy link
Member

Lee-W commented Feb 1, 2025

As there're many changes needed, convert it to draft.

Copy link
Member

Lee-W commented Apr 6, 2025

I'll close this one as we might need more discussion before actually implementing it. Feel free to raise a discussion anytime 🙂

@Lee-W Lee-W closed this Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@Lee-W Lee-W Lee-W requested changes

@woile woile Awaiting requested review from woile woile is a code owner

@noirbizarre noirbizarre Awaiting requested review from noirbizarre noirbizarre is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /