Skip to content
Closed
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
8 changes: 4 additions & 4 deletions apps/web/core/components/project/create/common-attributes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function ProjectCommonAttributes(props: Props) {
return;
}
if (e.target.value === "") setValue("identifier", "");
else setValue("identifier", projectIdentifierSanitizer(e.target.value).substring(0, 5));
else setValue("identifier", projectIdentifierSanitizer(e.target.value).substring(0, 10));
onChange(e);
handleFormOnChange?.();
};
Expand Down Expand Up @@ -91,11 +91,11 @@ function ProjectCommonAttributes(props: Props) {
/^[ÇŞĞIİÖÜA-Z0-9]+$/.test(value.toUpperCase()) || t("only_alphanumeric_non_latin_characters_allowed"),
minLength: {
value: 1,
message: t("project_id_must_be_at_least_1_character"),
message: t("project_id_min_char"),
},
maxLength: {
value: 5,
message: t("project_id_must_be_at_most_5_characters"),
value: 10,
message: t("project_id_max_char"),
},
}}
render={({ field: { value, onChange } }) => (
Expand Down
6 changes: 3 additions & 3 deletions apps/web/core/components/project/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export function ProjectDetailsForm(props: IProjectDetailsForm) {

if (project.identifier !== formData.identifier)
await projectService
.checkProjectIdentifierAvailability(workspaceSlug as string, payload.identifier ?? "")
.checkProjectIdentifierAvailability(workspaceSlug, payload.identifier ?? "")
.then(async (res) => {
if (res.exists) setError("identifier", { message: t("common.identifier_already_exists") });
else await handleUpdateChange(payload);
Expand Down Expand Up @@ -338,7 +338,7 @@ export function ProjectDetailsForm(props: IProjectDetailsForm) {
message: t("project_id_min_char"),
},
maxLength: {
value: 5,
value: 10,
message: t("project_id_max_char"),
},
}}
Expand All @@ -359,7 +359,7 @@ export function ProjectDetailsForm(props: IProjectDetailsForm) {
/>
<Tooltip
isMobile={isMobile}
tooltipContent="Helps you identify work items in the project uniquely. Max 5 characters."
tooltipContent={t("project_id_tooltip_content")}
className="text-sm"
position="right-start"
>
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/cs/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,13 @@ export default {
project_id_must_be_at_least_1_character: "ID projektu musí mít alespoň 1 znak",
project_id_must_be_at_most_5_characters: "ID projektu může mít maximálně 5 znaků",
project_id: "ID projektu",
project_id_tooltip_content: "Pomáhá jednoznačně identifikovat pracovní položky v projektu. Max. 5 znaků.",
project_id_tooltip_content: "Pomáhá jednoznačně identifikovat pracovní položky v projektu. Max. 10 znaků.",
description_placeholder: "Popis",
only_alphanumeric_non_latin_characters_allowed: "Jsou povoleny pouze alfanumerické a nelatinské znaky.",
project_id_is_required: "ID projektu je povinné",
project_id_allowed_char: "Jsou povoleny pouze alfanumerické a nelatinské znaky.",
project_id_min_char: "ID projektu musí mít alespoň 1 znak",
project_id_max_char: "ID projektu může mít maximálně 5 znaků",
project_id_max_char: "ID projektu může mít maximálně 10 znaků",
project_description_placeholder: "Zadejte popis projektu",
select_network: "Vybrat síť",
lead: "Vedoucí",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/de/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,13 @@ export default {
project_id_must_be_at_least_1_character: "Projekt-ID muss mindestens 1 Zeichen lang sein",
project_id_must_be_at_most_5_characters: "Projekt-ID darf maximal 5 Zeichen lang sein",
project_id: "Projekt-ID",
project_id_tooltip_content: "Hilft, Arbeitselemente im Projekt eindeutig zu identifizieren. Max. 5 Zeichen.",
project_id_tooltip_content: "Hilft, Arbeitselemente im Projekt eindeutig zu identifizieren. Max. 10 Zeichen.",
description_placeholder: "Beschreibung",
only_alphanumeric_non_latin_characters_allowed: "Es sind nur alphanumerische und nicht-lateinische Zeichen erlaubt.",
project_id_is_required: "Projekt-ID ist erforderlich",
project_id_allowed_char: "Es sind nur alphanumerische und nicht-lateinische Zeichen erlaubt.",
project_id_min_char: "Projekt-ID muss mindestens 1 Zeichen lang sein",
project_id_max_char: "Projekt-ID darf maximal 5 Zeichen lang sein",
project_id_max_char: "Projekt-ID darf maximal 10 Zeichen lang sein",
project_description_placeholder: "Geben Sie eine Projektbeschreibung ein",
select_network: "Netzwerk auswählen",
lead: "Leitung",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/en/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ export default {
project_id_must_be_at_least_1_character: "Project ID must at least be of 1 character",
project_id_must_be_at_most_5_characters: "Project ID must at most be of 5 characters",
Copy link

Copilot AI Dec 8, 2025

Choose a reason for hiding this comment

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

The translation key project_id_must_be_at_most_5_characters still references "5 characters" but should be updated to "10 characters" for consistency with the actual validation limit. Although this key is not currently used in the codebase (replaced by project_id_max_char), keeping it outdated could cause confusion or bugs if referenced in the future. This same issue exists in all locale files (cs, de, es, fr, id, it, ja, ko, pl, pt-BR, ro, ru, sk, tr-TR, ua, vi-VN, zh-CN, zh-TW).

Suggested change
project_id_must_be_at_most_5_characters: "Project ID must at most be of 5 characters",
project_id_must_be_at_most_5_characters: "Project ID must at most be of 10 characters",

Copilot uses AI. Check for mistakes.
project_id: "Project ID",
project_id_tooltip_content: "Helps you identify work items in the project uniquely. Max 5 characters.",
project_id_tooltip_content: "Helps you identify work items in the project uniquely. Max 10 characters.",
description_placeholder: "Description",
only_alphanumeric_non_latin_characters_allowed: "Only Alphanumeric & Non-latin characters are allowed.",
project_id_is_required: "Project ID is required",
project_id_allowed_char: "Only Alphanumeric & Non-latin characters are allowed.",
project_id_min_char: "Project ID must at least be of 1 character",
project_id_max_char: "Project ID must at most be of 5 characters",
project_id_max_char: "Project ID must at most be of 10 characters",
project_description_placeholder: "Enter project description",
select_network: "Select network",
lead: "Lead",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/es/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,13 @@ export default {
project_id_must_be_at_most_5_characters: "El ID del proyecto debe tener como máximo 5 caracteres",
project_id: "ID del proyecto",
project_id_tooltip_content:
"Te ayuda a identificar elementos de trabajo en el proyecto de manera única. Máximo 5 caracteres.",
"Te ayuda a identificar elementos de trabajo en el proyecto de manera única. Máximo 10 caracteres.",
description_placeholder: "Descripción",
only_alphanumeric_non_latin_characters_allowed: "Solo se permiten caracteres alfanuméricos y no latinos.",
project_id_is_required: "El ID del proyecto es requerido",
project_id_allowed_char: "Solo se permiten caracteres alfanuméricos y no latinos.",
project_id_min_char: "El ID del proyecto debe tener al menos 1 carácter",
project_id_max_char: "El ID del proyecto debe tener como máximo 5 caracteres",
project_id_max_char: "El ID del proyecto debe tener como máximo 10 caracteres",
project_description_placeholder: "Ingresa la descripción del proyecto",
select_network: "Seleccionar red",
lead: "Líder",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/fr/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@ export default {
project_id_must_be_at_most_5_characters: "L’ID du projet doit comporter au plus 5 caractères",
project_id: "ID du projet",
project_id_tooltip_content:
"Vous aide à identifier de manière unique les éléments de travail dans le projet. Maximum 5 caractères.",
"Vous aide à identifier de manière unique les éléments de travail dans le projet. Maximum 10 caractères.",
description_placeholder: "Description",
only_alphanumeric_non_latin_characters_allowed: "Seuls les caractères alphanumériques et non latins sont autorisés.",
project_id_is_required: "L’ID du projet est requis",
project_id_allowed_char: "Seuls les caractères alphanumériques et non latins sont autorisés.",
project_id_min_char: "L’ID du projet doit comporter au moins 1 caractère",
project_id_max_char: "LID du projet doit comporter au plus 5 caractères",
project_id_max_char: "L'ID du projet doit comporter au plus 10 caractères",
project_description_placeholder: "Entrez la description du projet",
select_network: "Sélectionner le réseau",
lead: "Responsable",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/id/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ export default {
project_id_must_be_at_most_5_characters: "ID proyek maksimal 5 karakter",
project_id: "ID proyek",
project_id_tooltip_content:
"Membantu Anda mengidentifikasi item kerja dalam proyek secara unik. Maksimal 5 karakter.",
"Membantu Anda mengidentifikasi item kerja dalam proyek secara unik. Maksimal 10 karakter.",
description_placeholder: "Deskripsi",
only_alphanumeric_non_latin_characters_allowed: "Hanya karakter alfanumerik & Non-latin yang diizinkan.",
project_id_is_required: "ID proyek diperlukan",
project_id_allowed_char: "Hanya karakter alfanumerik & Non-latin yang diizinkan.",
project_id_min_char: "ID proyek harus minimal 1 karakter",
project_id_max_char: "ID proyek maksimal 5 karakter",
project_id_max_char: "ID proyek maksimal 10 karakter",
project_description_placeholder: "Masukkan deskripsi proyek",
select_network: "Pilih jaringan",
lead: "Pemimpin",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/it/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ export default {
project_id_must_be_at_most_5_characters: "L'ID del progetto deve contenere al massimo 5 caratteri",
project_id: "ID del progetto",
project_id_tooltip_content:
"Ti aiuta a identificare in modo univoco gli elementi di lavoro nel progetto. Massimo 5 caratteri.",
"Ti aiuta a identificare in modo univoco gli elementi di lavoro nel progetto. Massimo 10 caratteri.",
description_placeholder: "Descrizione",
only_alphanumeric_non_latin_characters_allowed: "Sono ammessi solo caratteri alfanumerici e non latini.",
project_id_is_required: "L'ID del progetto è obbligatorio",
project_id_allowed_char: "Sono ammessi solo caratteri alfanumerici e non latini.",
project_id_min_char: "L'ID del progetto deve contenere almeno 1 carattere",
project_id_max_char: "L'ID del progetto deve contenere al massimo 5 caratteri",
project_id_max_char: "L'ID del progetto deve contenere al massimo 10 caratteri",
project_description_placeholder: "Inserisci la descrizione del progetto",
select_network: "Seleziona rete",
lead: "Responsabile",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/ja/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ export default {
project_id_must_be_at_least_1_character: "プロジェクトIDは最低1文字必要です",
project_id_must_be_at_most_5_characters: "プロジェクトIDは最大5文字までです",
project_id: "プロジェクトID",
project_id_tooltip_content: "プロジェクト内の作業項目を一意に識別するのに役立ちます。最大5文字。",
project_id_tooltip_content: "プロジェクト内の作業項目を一意に識別するのに役立ちます。最大10文字。",
description_placeholder: "説明",
only_alphanumeric_non_latin_characters_allowed: "英数字と非ラテン文字のみ使用できます。",
project_id_is_required: "プロジェクトIDは必須です",
project_id_allowed_char: "英数字と非ラテン文字のみ使用できます。",
project_id_min_char: "プロジェクトIDは最低1文字必要です",
project_id_max_char: "プロジェクトIDは最大5文字までです",
project_id_max_char: "プロジェクトIDは最大10文字までです",
project_description_placeholder: "プロジェクトの説明を入力",
select_network: "ネットワークを選択",
lead: "リード",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/ko/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@ export default {
project_id_must_be_at_least_1_character: "프로젝트 ID는 최소 1자 이상이어야 합니다",
project_id_must_be_at_most_5_characters: "프로젝트 ID는 최대 5자 이하여야 합니다",
project_id: "프로젝트 ID",
project_id_tooltip_content: "작업 항목을 고유하게 식별하는 데 도움이 됩니다. 최대 5자.",
project_id_tooltip_content: "작업 항목을 고유하게 식별하는 데 도움이 됩니다. 최대 10자.",
description_placeholder: "설명",
only_alphanumeric_non_latin_characters_allowed: "영숫자 및 비라틴 문자만 허용됩니다.",
project_id_is_required: "프로젝트 ID가 필요합니다",
project_id_allowed_char: "영숫자 및 비라틴 문자만 허용됩니다.",
project_id_min_char: "프로젝트 ID는 최소 1자 이상이어야 합니다",
project_id_max_char: "프로젝트 ID는 최대 5자 이하여야 합니다",
project_id_max_char: "프로젝트 ID는 최대 10자 이하여야 합니다",
project_description_placeholder: "프로젝트 설명 입력",
select_network: "네트워크 선택",
lead: "리드",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/pl/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ export default {
project_id_must_be_at_least_1_character: "ID projektu musi mieć co najmniej 1 znak",
project_id_must_be_at_most_5_characters: "ID projektu może mieć maksymalnie 5 znaków",
project_id: "ID projektu",
project_id_tooltip_content: "Pomaga jednoznacznie identyfikować elementy pracy w projekcie. Max. 5 znaków.",
project_id_tooltip_content: "Pomaga jednoznacznie identyfikować elementy pracy w projekcie. Max. 10 znaków.",
description_placeholder: "Opis",
only_alphanumeric_non_latin_characters_allowed: "Dozwolone są tylko znaki alfanumeryczne i nielatynowskie.",
project_id_is_required: "ID projektu jest wymagane",
project_id_allowed_char: "Dozwolone są tylko znaki alfanumeryczne i nielatynowskie.",
project_id_min_char: "ID projektu musi mieć co najmniej 1 znak",
project_id_max_char: "ID projektu może mieć maksymalnie 5 znaków",
project_id_max_char: "ID projektu może mieć maksymalnie 10 znaków",
project_description_placeholder: "Wpisz opis projektu",
select_network: "Wybierz sieć",
lead: "Lead",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/pt-BR/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ export default {
project_id_must_be_at_most_5_characters: "O ID do projeto deve ter no máximo 5 caracteres",
project_id: "ID do projeto",
project_id_tooltip_content:
"Ajuda você a identificar itens de trabalho no projeto de forma exclusiva. Máximo de 5 caracteres.",
"Ajuda você a identificar itens de trabalho no projeto de forma exclusiva. Máximo de 10 caracteres.",
description_placeholder: "Descrição",
only_alphanumeric_non_latin_characters_allowed: "Apenas caracteres alfanuméricos e não latinos são permitidos.",
project_id_is_required: "O ID do projeto é obrigatório",
project_id_allowed_char: "Apenas caracteres alfanuméricos e não latinos são permitidos.",
project_id_min_char: "O ID do projeto deve ter pelo menos 1 caractere",
project_id_max_char: "O ID do projeto deve ter no máximo 5 caracteres",
project_id_max_char: "O ID do projeto deve ter no máximo 10 caracteres",
project_description_placeholder: "Insira a descrição do projeto",
select_network: "Selecione a rede",
lead: "Líder",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/ro/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,13 @@ export default {
project_id_must_be_at_least_1_character: "ID-ul proiectului trebuie să conțină cel puțin 1 caracter",
project_id_must_be_at_most_5_characters: "ID-ul proiectului trebuie să conțină cel mult 5 caractere",
project_id: "ID-ul Proiectului",
project_id_tooltip_content: "Te ajută să identifici unic activitățile din proiect. Maxim 5 caractere.",
project_id_tooltip_content: "Te ajută să identifici unic activitățile din proiect. Maxim 10 caractere.",
description_placeholder: "Descriere",
only_alphanumeric_non_latin_characters_allowed: "Sunt permise doar caractere alfanumerice și non-latine.",
project_id_is_required: "ID-ul proiectului este obligatoriu",
project_id_allowed_char: "Sunt permise doar caractere alfanumerice și non-latine.",
project_id_min_char: "ID-ul proiectului trebuie să aibă cel puțin 1 caracter",
project_id_max_char: "ID-ul proiectului trebuie să aibă cel mult 5 caractere",
project_id_max_char: "ID-ul proiectului trebuie să aibă cel mult 10 caractere",
project_description_placeholder: "Introdu descrierea proiectului",
select_network: "Selectează rețeaua",
lead: "Lider",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/ru/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ export default {
project_id_must_be_at_least_1_character: "ID проекта должен содержать минимум 1 символ",
project_id_must_be_at_most_5_characters: "ID проекта должен содержать максимум 5 символов",
project_id: "ID проекта",
project_id_tooltip_content: "Помогает идентифицировать рабочие элементы в проекте. Макс. 5 символов.",
project_id_tooltip_content: "Помогает идентифицировать рабочие элементы в проекте. Макс. 10 символов.",
description_placeholder: "Описание",
only_alphanumeric_non_latin_characters_allowed: "Допускаются только буквенно-цифровые и нелатинские символы.",
project_id_is_required: "Требуется ID проекта",
project_id_allowed_char: "Допускаются только буквенно-цифровые и нелатинские символы.",
project_id_min_char: "ID проекта должен содержать минимум 1 символ",
project_id_max_char: "ID проекта должен содержать максимум 5 символов",
project_id_max_char: "ID проекта должен содержать максимум 10 символов",
project_description_placeholder: "Введите описание проекта",
select_network: "Выбрать сеть",
lead: "Руководитель",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/sk/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,13 @@ export default {
project_id_must_be_at_least_1_character: "ID projektu musí mať aspoň 1 znak",
project_id_must_be_at_most_5_characters: "ID projektu môže mať maximálne 5 znakov",
project_id: "ID projektu",
project_id_tooltip_content: "Pomáha jednoznačne identifikovať pracovné položky v projekte. Max. 5 znakov.",
project_id_tooltip_content: "Pomáha jednoznačne identifikovať pracovné položky v projekte. Max. 10 znakov.",
description_placeholder: "Popis",
only_alphanumeric_non_latin_characters_allowed: "Sú povolené iba alfanumerické a nelatinské znaky.",
project_id_is_required: "ID projektu je povinné",
project_id_allowed_char: "Sú povolené iba alfanumerické a nelatinské znaky.",
project_id_min_char: "ID projektu musí mať aspoň 1 znak",
project_id_max_char: "ID projektu môže mať maximálne 5 znakov",
project_id_max_char: "ID projektu môže mať maximálne 10 znakov",
project_description_placeholder: "Zadajte popis projektu",
select_network: "Vybrať sieť",
lead: "Vedúci",
Expand Down
4 changes: 2 additions & 2 deletions packages/i18n/src/locales/tr-TR/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,13 +337,13 @@ export default {
project_id_must_be_at_least_1_character: "Proje ID en az 1 karakter olmalı",
project_id_must_be_at_most_5_characters: "Proje ID en fazla 5 karakter olmalı",
project_id: "Proje ID",
project_id_tooltip_content: "Projedeki iş öğelerini benzersiz şekilde tanımlamanıza yardımcı olur. Maks. 5 karakter.",
project_id_tooltip_content: "Projedeki iş öğelerini benzersiz şekilde tanımlamanıza yardımcı olur. Maks. 10 karakter.",
description_placeholder: "Açıklama",
only_alphanumeric_non_latin_characters_allowed: "Yalnızca alfasayısal ve Latin olmayan karakterlere izin verilir.",
project_id_is_required: "Proje ID gereklidir",
project_id_allowed_char: "Yalnızca alfasayısal ve Latin olmayan karakterlere izin verilir.",
project_id_min_char: "Proje ID en az 1 karakter olmalı",
project_id_max_char: "Proje ID en fazla 5 karakter olmalı",
project_id_max_char: "Proje ID en fazla 10 karakter olmalı",
project_description_placeholder: "Proje açıklamasını girin",
select_network: "Ağ seç",
lead: "Lider",
Expand Down
Loading
Loading