feat: update gallery nags (#6999)

* update nag to require 3 images from shader projects.

* locales
This commit is contained in:
coolbot
2026-08-04 21:33:26 +00:00
committed by GitHub
parent f42a3bfde3
commit 474c6560fc
27 changed files with 36 additions and 120 deletions
+26 -14
View File
@@ -102,6 +102,23 @@ export const coreNags: Nag[] = [
description: (context: NagContext) => {
const { formatMessage } = useVIntl()
if (context.projectV3?.project_types.includes('resourcepack')) {
return formatMessage(
defineMessage({
id: 'nags.upload-gallery-image.description-resourcepack',
defaultMessage:
'At least one gallery image is required to showcase the content of your resource pack, except for audio or localization packs. If this describes your pack, please select the appropriate tag.',
}),
)
} else if (context.projectV3?.project_types.includes('shader')) {
return formatMessage(
defineMessage({
id: 'nags.upload-gallery-image.description-shader',
defaultMessage:
'At least three gallery images are required to showcase the content of your shader in a variety of situations and conditions.',
}),
)
}
return formatMessage(
defineMessage({
id: 'nags.upload-gallery-image.description',
@@ -109,31 +126,26 @@ export const coreNags: Nag[] = [
'At least one gallery image is required to showcase the content of your {type}.',
}),
{
type:
context.project.project_type === 'resourcepack'
? formatMessage(
defineMessage({
id: 'nags.upload-gallery-image.resourcepack-type',
defaultMessage:
'resource pack, except for audio or localization packs. If this describes your pack, please select the appropriate tag',
}),
)
: formatProjectTypeSentence(formatMessage, context.project.project_type),
type: formatProjectTypeSentence(formatMessage, context.project.project_type),
},
)
},
status: 'required',
shouldShow: (context: NagContext) => {
return (
(context.project.project_type === 'resourcepack' ||
context.project.project_type === 'shader') &&
(!context.project.gallery || context.project.gallery?.length === 0) &&
(context.projectV3?.project_types.includes('shader') &&
context.project.gallery &&
context.project.gallery?.length < 3) ||
(context.projectV3?.project_types.includes('resourcepack') &&
context.project.gallery &&
context.project.gallery?.length === 0 &&
!(
context.project.categories.includes('audio') ||
context.project.additional_categories.includes('audio') ||
context.project.categories.includes('locale') ||
context.project.additional_categories.includes('locale')
)
)) ||
false
)
},
link: {
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "يُطلب صورة واحدة على الأقل في المَعْرِض لعرض محتوى {type} الخاص بك."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "حُزْمَة موارد، باستثناء حزم الصوت أو التعريب. إذا كان هذا يصف حزمتك، يرجى اختيار الوسم المناسب"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "رفع صورة من المَعْرِض"
},
@@ -279,4 +276,3 @@
"defaultMessage": "زيارة إعدادات الروابط"
}
}
@@ -251,9 +251,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Je vyžadován alespoň jeden obrázek v galerii pro zobrazení obsahu vašeho {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "resource packu, s výjimkou audia nebo lokalizačních balíčků. Pokud popis odpovídá vašemu balíčku, vyberte prosím příslušný štítek"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Nahrajte obrázek do galerie"
},
@@ -276,4 +273,3 @@
"defaultMessage": "Přejděte do nastavení odkazů"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Es wird mindestens ein Galeriebild benötigt, um den Inhalt deines/deiner {type} zu präsentieren."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "Resource Pack, ausgenommen Audio- oder Lokalisierungs-Packs. Wenn dies auf dein Pack zutrifft, wähle bitte das entsprechende Tag aus"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Lade ein Galeriebild hoch"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Link-Einstellungen ansehen"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Es ist mindestens ein Galeriebild erforderlich, um den Inhalt deines {type} zu präsentieren."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "Ressourcenpaket, mit Ausnahme von Audio- oder Lokalisierungspaketen. Wenn dies auf dein Paket zutrifft, wähle bitte den entsprechenden Tag aus"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Galeriebild hochladen"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Linkeinstellungen ansehen"
}
}
@@ -254,8 +254,11 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "At least one gallery image is required to showcase the content of your {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "resource pack, except for audio or localization packs. If this describes your pack, please select the appropriate tag"
"nags.upload-gallery-image.description-resourcepack": {
"defaultMessage": "At least one gallery image is required to showcase the content of your resource pack, except for audio or localization packs. If this describes your pack, please select the appropriate tag."
},
"nags.upload-gallery-image.description-shader": {
"defaultMessage": "At least three gallery images are required to showcase the content of your shader in a variety of situations and conditions."
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Upload a gallery image"
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Se requiere al menos una imagen en la galería para mostrar el contenido de tu {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "pack de recursos, excepto para audio o packs de localización. Si esto describe tu pack, por favor, seleccionar la etiqueta apropiada"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Subir una imagen a la galería"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Ver configuración de enlaces"
}
}
@@ -251,9 +251,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Se requiere al menos una imagen en la galería para mostrar el contenido de tu {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "pack de recursos, excepto para audio o packs de localización. Si esto describe tu pack, por favor, seleccionar la etiqueta apropiada"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Subir una imagen a la galería"
},
@@ -276,4 +273,3 @@
"defaultMessage": "Visitar la configuración de enlaces"
}
}
@@ -227,9 +227,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Mangangailangan ng hindi kukulang sa isang imaheng panggaleriya na pang-showcase ng kontento ng iyong {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "resource pack, maliban sa audio o mga pack ng pagsasalon. Kung napaglarawan nito ang iyong pack, mangyaring piliin ang nakawawastong tag"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Mag-upload ng imaheng panggaleriya"
},
@@ -252,4 +249,3 @@
"defaultMessage": "Bisitahin ang mga setting sa mga link"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Au moins une image dans la galerie est nécessaire pour montrer le contenu de votre {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "pack de ressource, sauf pour les packs d'audio ou de localisation. Si cela décrit votre pack, veuillez sélectionner les étiquettes appropriées"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Ajouter une image à la galerie"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Accéder aux paramètres des liens"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Legalább egy kép megadása szükséged a te {type}-od alapján."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "forráscsomag, kivéve a hang illetve a fordításos csomagok. Ha ez leírja a csomagod akkor válaszd ki a megfelelő címkét"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Tölts fel egy képet"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Látogasd meg a linkbeállításokat"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Setidaknya satu gambar galeri diperlukan untuk memamerkan konten dari {type} Anda."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "paket sumber, kecuali untuk paket suara atau penerjemahan. Bila keterangan ini sesuai dengan paket Anda, mohon pilih tag yang sesuai"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Unggah gambar galeri"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Kunjungi pengaturan tautan"
}
}
@@ -245,9 +245,6 @@
"nags.too-many-tags.title": {
"defaultMessage": "Seleziona i tag pertinenti"
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "pacchetto di risorse, eccetto per audio e localizzazioni. Se ciò descrive il pacchetto, seleziona il tag appropriato"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Carica un'immagine"
},
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "{type}の内容を展示するには、少なくとも1枚の画像が必要です。"
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "音声パックや翻訳パックを除くリソースパックに該当する場合は、適切なタグを選択してください"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "ギャラリー画像をアップロード"
},
@@ -279,4 +276,3 @@
"defaultMessage": "リンク設定を表示"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "{type}의 내용을 보여주기 위해서는 갤러리 이미지가 최소 한 장 이상 필요합니다."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "오디오나 현지화 팩을 제외한 리소스 팩입니다. 팩이 이에 해당한다면, 적절한 태그를 선택해 주세요"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "갤러리 이미지 업로드"
},
@@ -279,4 +276,3 @@
"defaultMessage": "링크 설정 방문"
}
}
@@ -227,9 +227,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Sekurang-kurangnya satu gambar galeri diperlukan untuk mempamerkan kandungan {type} anda."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "pek sumber anda, melainkan ianya pek audio atau terjemahan. Jika pek ini adalah pek audio atau terjemahan, sila pilih tag yang sesuai"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Muat naik gambar galeri"
},
@@ -252,4 +249,3 @@
"defaultMessage": "Kunjungi tetapan pautan"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Er is minstens één afbeelding in de galerij vereist om de inhoud van je {type} te tonen."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "bronpakket, met uitzondering van audio- of lokalisatiepakketten. Als dit op jouw pakket van toepassing is, selecteer dan de juiste tag"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Upload een galerijafbeelding"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Bezoek linkjes instellingen"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Przynajmniej jeden z obrazów w galerii musi pokazywać zawartość {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "paczki zasobów, z wyjątkiem paczek zasobów z dźwiękami bądź tłumaczeniami. Jeżeli opisuje to Twoją paczkę zasobów, wybierz odpowiedni tag"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Prześlij obraz do galerii"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Odwiedź ustawienia linków"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Pelo menos uma imagem de galeria é necessária para mostrar o conteúdo do seu {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "pacote de recursos, exceto pacotes de áudio ou localização. Se esta descrição se aplica ao seu pacote, selecione a etiqueta apropriada"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Envie uma imagem para a galeria"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Visitar página de links"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Нужно минимум одно изображение, чтобы показать контент, входящий в {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "набор ресурсов, кроме наборов аудио и локализации. Если это описывает ваш набор, выберите подходящий тег"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Добавьте изображения"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Настроить ссылки"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Barem jedna slika u geliriji je potrebna da bi se predstavio sadržaj tvog {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "resurs paket, osim za audio ili paket za lokalizacije. Ako to opisuje tvoj paket, molimo izaberi tačnu oznaku"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Postavi sliku za geleriju"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Posjeti podešavanja linkova"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Åtminstone en galleribild måste visa innehållet av din {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "resurspaket, förutom ljud eller lokaliseringspaket. Om detta beskriver ditt paket, vänligen välj den passande taggen"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Ladda upp en galleribild"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Besök länkinställningar"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "{type} içeriğinizi sergilemek için en az bir galeri görseli gereklidir."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "ses veya yerelleştirme paketleri hariç kaynak paketi. Eğer paketiniz bu tanıma uyuyorsa, lütfen uygun etiketi seçin"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Galeriye resim yükle"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Bağlantı ayarlarına göz at"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Потрібно щонайменше одне зображення з галереї, щоб показати вміст вашого {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "пакет ресурсів, окрім аудіопакетів або пакетів локалізації. Якщо це відповідає вашому пакету, будь ласка, оберіть відповідний теґ"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Завантажте зображення до галереї"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Відвідайте налаштування посилань"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "Cần ít nhất một hình ảnh minh họa cho {type}."
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "gói tài nguyên, trừ gói tài nguyên nhạc hoặc phiên dịch. Nếu các trường hợp trên bao gồm gói tài nguyên của bạn, hãy lựa chọn một nhãn thích hợp"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "Tải lên hình ảnh thư viện"
},
@@ -279,4 +276,3 @@
"defaultMessage": "Truy cập cài đặt liên kết"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "至少需要一个图像来展示你的 {type}的内容。"
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "资源包,但不包括音频包或本地化包。如果你的内容符合这一描述,请选择相应的标签"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "上传图片至项目图库"
},
@@ -279,4 +276,3 @@
"defaultMessage": "访问链接设置"
}
}
@@ -254,9 +254,6 @@
"nags.upload-gallery-image.description": {
"defaultMessage": "需要至少一張圖庫圖片來展示你的{type}。"
},
"nags.upload-gallery-image.resourcepack-type": {
"defaultMessage": "資源包(音效包或在地化語言包除外)。如果你的資源包屬於上述類型,請選擇對應的標籤"
},
"nags.upload-gallery-image.title": {
"defaultMessage": "上傳圖庫圖片"
},
@@ -279,4 +276,3 @@
"defaultMessage": "前往連結設定"
}
}