fix(license): remove cascading commercial-use bit encoding, clarify Allow Selling label (#941)

- _resolve_commercial_bits() no longer has Sell-implies-Image
  cascading; each CommercialUse value sets only its own bit,
  matching CivitAI's modern array-format API.
- Keep filter tag label as 'Allow Selling' for brevity; add
  title/tooltip 'Allow selling generated images' on hover.
- Same tooltip treatment for 'No Credit Required'.
- Add i18n keys for both tooltips across all 10 locales.
This commit is contained in:
Will Miao
2026-05-26 06:02:17 +08:00
parent 2629fcce23
commit d7caa1fa47
19 changed files with 122 additions and 57 deletions

View File

@@ -5,7 +5,7 @@
</div>
<div class="section__toggles">
<label class="toggle-item">
<span class="toggle-item__label">No Credit Required</span>
<span class="toggle-item__label" title="Use the model without crediting the creator">No Credit Required</span>
<button
type="button"
class="toggle-switch"
@@ -20,7 +20,7 @@
</label>
<label class="toggle-item">
<span class="toggle-item__label">Allow Selling</span>
<span class="toggle-item__label" title="Allow selling generated images">Allow Selling</span>
<button
type="button"
class="toggle-switch"