🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@wbolster
Copy link
Contributor

@wbolster wbolster commented Nov 21, 2025

Passing ‘:tag=false’ to the i18n component renders no tag, but
TypeScript would complain, since the prop type was defined to allow
only strings.

Widen the type to also allow boolean ‘false’, which matches runtime
behaviour and docs.

@wbolster wbolster force-pushed the i18n-component-types branch from 16ca6cb to 71377c1 Compare November 21, 2025 10:39
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/fluent-vue/fluent-vue@987

commit: 254f7f5

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.60%. Comparing base (a416e16) to head (254f7f5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #987   +/-   ##
=======================================
  Coverage   98.60%   98.60%           
=======================================
  Files          12       12           
  Lines         215      215           
  Branches       46       46           
=======================================
  Hits          212      212           
  Misses          1        1           
  Partials        2        2           
Flag Coverage Δ
vue-2 86.04% <ø> (ø)
vue-3 90.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wbolster wbolster marked this pull request as draft November 24, 2025 10:34
@wbolster wbolster force-pushed the i18n-component-types branch from 0d6a85b to c524cc6 Compare November 24, 2025 14:47
@wbolster wbolster changed the title Allow both strings and booleans for i18n component ‘tag’ prop Fix types: i18n component ‘tag’ prop can also be boolean ‘false’ Nov 24, 2025
@wbolster wbolster marked this pull request as ready for review November 24, 2025 14:47
@Demivan Demivan added the Type: Bug Something isn't working label Nov 25, 2025
Passing ‘:tag=false’ to the i18n component renders no tag, but
TypeScript would complain, since the prop type was defined to allow
only strings.

Widen the type to also allow boolean ‘false’, which matches runtime
behaviour and docs.
@Demivan Demivan force-pushed the i18n-component-types branch from f92e7a4 to 254f7f5 Compare November 25, 2025 11:09
@Demivan Demivan merged commit 4ced4ad into fluent-vue:main Nov 25, 2025
15 checks passed
@wbolster wbolster deleted the i18n-component-types branch November 25, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working

Development

Successfully merging this pull request may close these issues.

2 participants