Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,34 @@

`gitcommit` grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).

Support for [Conventional Commits](https://www.conventionalcommits.org) specifications.
## Features

- Support for [Conventional Commits](https://www.conventionalcommits.org) specifications.
- Support for different locales / languages. See [Supported locales](#supported-locales) for a full list.

## Supported locales

We aim to support all the [locales supported by git](https://github.com/git/git/tree/master/po).
The currently supported locales are listed below:

- `en`: English
- `ca`: Catalan
- `de`: German
- `el`: Greek
- `es`: Spanish
- `fr`: French
- `id`: Indonesian (Bahasa)
- `it`: Italian
- `ko`: Korean
- `pl`: Polish
- `pt_PT`: Portugal Portugese
- `ru`: Russian
- `sv`: Swedish
- `tr`: Turkish
- `vi`: Vietnamese
- `zh_CN`: Chinese (Simplified)
- `zh_TW`: Taiwanese Mandarin

## Credits

- [https://github.com/the-mikedavis/tree-sitter-git-commit](https://github.com/the-mikedavis/tree-sitter-git-commit) good parser but [only works in english](https://github.com/the-mikedavis/tree-sitter-git-commit/issues/4).
- [https://github.com/the-mikedavis/tree-sitter-git-commit](https://github.com/the-mikedavis/tree-sitter-git-commit) Good parser but [only works in English](https://github.com/the-mikedavis/tree-sitter-git-commit/issues/4).
42 changes: 21 additions & 21 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,32 +130,32 @@ module.exports = grammar({
alias(
choice(
'# Please enter the commit message for your changes. Lines starting',
'# Introduïu el missatge de comissió per als vostres canvis.',
'# Introduïu el missatge de comissió dels vostres canvis.',
'# Introduïu el missatge de comissió pels vostres canvis. Es mantindran',
'# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen,',
'# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen, die',
'# Παρακαλώ εισάγετε το μήνυμα υποβολής για τις αλλαγές σας. Οι γραμμές που αρχίζουν',
'# Por favor ingresa el mensaje del commit para tus cambios. Las',
'# Veuillez saisir le message de validation pour vos modifications. Les lignes',
'# Veuillez saisir le message de validation pour vos modifications. Les lignes commençant',
'# 請輸入描述您變更的提交訊息。',
'# 請輸入描述您變更的提交訊息。開頭是「%c」',
'# 請輸入描述您變更的提交訊息。會保留開頭是「%c」',
'# 請輸入描述您變更的提交訊息。會保留開頭是',
'# Mohon masukkan pesan komit untuk perubahan Anda. Baris yang diawali',
'# Immetti il messaggio di commit per le modifiche. Le righe che iniziano',
"# 변경 사항에 대한 커밋 메시지를 입력하십시오. '%c' 문자로 시작하는",
'# Podaj komunikat zapisu swoich zmian. Wiersze zaczynające się',
'# Por favor, introduz a mensagem de memória das tuas alterações.',
'# Пожалуйста, введите сообщение коммита для ваших изменений. Строки,',
'# Ange incheckningsmeddelandet för dina ändringar. Rader som inleds',
"# Lütfen değişiklikleriniz için bir işleme iletisi girin. '%c' ile başlayan",
'# Hãy nhập vào các thông tin để giải thích các thay đổi của bạn. Những',
'# Hãy nhập vào các thông tin để giải thích các thay đổi của bạn. Những dòng được',
"# 请为您的变更输入提交说明。以 '%c' 开始的行将被忽略。",
"# 请为您的变更输入提交说明。以 '%c' 开始的行将被忽略,而一个空的提交",
"# 请为您的变更输入提交说明。以 '%c' 开始的行将被保留,如果您愿意",
'# Hãy nhập vào các thông tin để giải thích các thay đổi của bạn. Những',
'# Hãy nhập vào các thông tin để giải thích các thay đổi của bạn. Những dòng được',
"# Lütfen değişiklikleriniz için bir işleme iletisi girin. '%c' ile başlayan",
'# Ange incheckningsmeddelandet för dina ändringar. Rader som inleds',
'# Пожалуйста, введите сообщение коммита для ваших изменений. Строки,',
'# Por favor, introduz a mensagem de memória das tuas alterações.',
'# Podaj komunikat zapisu swoich zmian. Wiersze zaczynające się',
"# 변경 사항에 대한 커밋 메시지를 입력하십시오. '%c' 문자로 시작하는",
'# Immetti il messaggio di commit per le modifiche. Le righe che iniziano',
'# Mohon masukkan pesan komit untuk perubahan Anda. Baris yang diawali',
'# Por favor ingresa el mensaje del commit para tus cambios. Las',
'# Παρακαλώ εισάγετε το μήνυμα υποβολής για τις αλλαγές σας. Οι γραμμές που αρχίζουν',
'# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen,',
'# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen, die',
'# Introduïu el missatge de comissió per als vostres canvis.',
'# Introduïu el missatge de comissió dels vostres canvis.',
'# Introduïu el missatge de comissió pels vostres canvis. Es mantindran'
'# 請輸入描述您變更的提交訊息。',
'# 請輸入描述您變更的提交訊息。開頭是「%c」',
'# 請輸入描述您變更的提交訊息。會保留開頭是「%c」',
'# 請輸入描述您變更的提交訊息。會保留開頭是'
),
$.generated_comment
),
Expand Down
52 changes: 26 additions & 26 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -630,107 +630,107 @@
},
{
"type": "STRING",
"value": "# Veuillez saisir le message de validation pour vos modifications. Les lignes"
"value": "# Introduïu el missatge de comissió per als vostres canvis."
},
{
"type": "STRING",
"value": "# Veuillez saisir le message de validation pour vos modifications. Les lignes commençant"
"value": "# Introduïu el missatge de comissió dels vostres canvis."
},
{
"type": "STRING",
"value": "# 請輸入描述您變更的提交訊息。"
"value": "# Introduïu el missatge de comissió pels vostres canvis. Es mantindran"
},
{
"type": "STRING",
"value": "# 請輸入描述您變更的提交訊息。開頭是「%c」"
"value": "# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen,"
},
{
"type": "STRING",
"value": "# 請輸入描述您變更的提交訊息。會保留開頭是「%c」"
"value": "# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen, die"
},
{
"type": "STRING",
"value": "# 請輸入描述您變更的提交訊息。會保留開頭是"
"value": "# Παρακαλώ εισάγετε το μήνυμα υποβολής για τις αλλαγές σας. Οι γραμμές που αρχίζουν"
},
{
"type": "STRING",
"value": "# 请为您的变更输入提交说明。以 '%c' 开始的行将被忽略。"
"value": "# Por favor ingresa el mensaje del commit para tus cambios. Las"
},
{
"type": "STRING",
"value": "# 请为您的变更输入提交说明。以 '%c' 开始的行将被忽略,而一个空的提交"
"value": "# Veuillez saisir le message de validation pour vos modifications. Les lignes"
},
{
"type": "STRING",
"value": "# 请为您的变更输入提交说明。以 '%c' 开始的行将被保留,如果您愿意"
"value": "# Veuillez saisir le message de validation pour vos modifications. Les lignes commençant"
},
{
"type": "STRING",
"value": "# Hãy nhập vào các thông tin để giải thích các thay đổi của bạn. Những"
"value": "# Mohon masukkan pesan komit untuk perubahan Anda. Baris yang diawali"
},
{
"type": "STRING",
"value": "# Hãy nhập vào các thông tin để giải thích các thay đổi của bạn. Những dòng được"
"value": "# Immetti il messaggio di commit per le modifiche. Le righe che iniziano"
},
{
"type": "STRING",
"value": "# Lütfen değişiklikleriniz için bir işleme iletisi girin. '%c' ile başlayan"
"value": "# 변경 사항에 대한 커밋 메시지를 입력하십시오. '%c' 문자로 시작하는"
},
{
"type": "STRING",
"value": "# Ange incheckningsmeddelandet för dina ändringar. Rader som inleds"
"value": "# Podaj komunikat zapisu swoich zmian. Wiersze zaczynające się"
},
{
"type": "STRING",
"value": "# Пожалуйста, введите сообщение коммита для ваших изменений. Строки,"
"value": "# Por favor, introduz a mensagem de memória das tuas alterações."
},
{
"type": "STRING",
"value": "# Por favor, introduz a mensagem de memória das tuas alterações."
"value": "# Пожалуйста, введите сообщение коммита для ваших изменений. Строки,"
},
{
"type": "STRING",
"value": "# Podaj komunikat zapisu swoich zmian. Wiersze zaczynające się"
"value": "# Ange incheckningsmeddelandet för dina ändringar. Rader som inleds"
},
{
"type": "STRING",
"value": "# 변경 사항에 대한 커밋 메시지를 입력하십시오. '%c' 문자로 시작하는"
"value": "# Lütfen değişiklikleriniz için bir işleme iletisi girin. '%c' ile başlayan"
},
{
"type": "STRING",
"value": "# Immetti il messaggio di commit per le modifiche. Le righe che iniziano"
"value": "# Hãy nhập vào các thông tin để giải thích các thay đổi của bạn. Những"
},
{
"type": "STRING",
"value": "# Mohon masukkan pesan komit untuk perubahan Anda. Baris yang diawali"
"value": "# Hãy nhập vào các thông tin để giải thích các thay đổi của bạn. Những dòng được"
},
{
"type": "STRING",
"value": "# Por favor ingresa el mensaje del commit para tus cambios. Las"
"value": "# 请为您的变更输入提交说明。以 '%c' 开始的行将被忽略。"
},
{
"type": "STRING",
"value": "# Παρακαλώ εισάγετε το μήνυμα υποβολής για τις αλλαγές σας. Οι γραμμές που αρχίζουν"
"value": "# 请为您的变更输入提交说明。以 '%c' 开始的行将被忽略,而一个空的提交"
},
{
"type": "STRING",
"value": "# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen,"
"value": "# 请为您的变更输入提交说明。以 '%c' 开始的行将被保留,如果您愿意"
},
{
"type": "STRING",
"value": "# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen, die"
"value": "# 請輸入描述您變更的提交訊息。"
},
{
"type": "STRING",
"value": "# Introduïu el missatge de comissió per als vostres canvis."
"value": "# 請輸入描述您變更的提交訊息。開頭是「%c」"
},
{
"type": "STRING",
"value": "# Introduïu el missatge de comissió dels vostres canvis."
"value": "# 請輸入描述您變更的提交訊息。會保留開頭是「%c」"
},
{
"type": "STRING",
"value": "# Introduïu el missatge de comissió pels vostres canvis. Es mantindran"
"value": "# 請輸入描述您變更的提交訊息。會保留開頭是"
}
]
},
Expand Down
Loading