Skip to content

Add support for mapping translation parameters #920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 14, 2025
Merged

Add support for mapping translation parameters #920

merged 2 commits into from
Feb 14, 2025

Conversation

Demivan
Copy link
Member

@Demivan Demivan commented Feb 14, 2025

Description

Allow passing a function to map translation parameters to FluentVariable. This enables support for types that fluent.js does not support; for example: Intl.Temporal, raw objects, null, undefined.

Linked Issues

Closes #917

Additional context

Copy link

github-actions bot commented Feb 14, 2025

Export Size

fluent-vue

Name Size Diff
useFluent 958 B +49 B (+5.39%) 🔺
createFluentVue 4.01 KB +49 B (+1.21%) 🔺

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.54%. Comparing base (229eb39) to head (43ebd52).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #920      +/-   ##
==========================================
+ Coverage   99.52%   99.54%   +0.01%     
==========================================
  Files          12       12              
  Lines         212      218       +6     
  Branches       43       45       +2     
==========================================
+ Hits          211      217       +6     
  Partials        1        1              
Flag Coverage Δ
vue-2 88.53% <100.00%> (+0.32%) ⬆️
vue-3 92.20% <100.00%> (+0.22%) ⬆️

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.

@Demivan Demivan force-pushed the map-variables branch 2 times, most recently from 4dc86e5 to e676766 Compare February 14, 2025 19:42
Copy link

pkg-pr-new bot commented Feb 14, 2025

Open in Stackblitz

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

commit: 43ebd52

@Demivan Demivan added the Type: Feature Includes new features label Feb 14, 2025
@Demivan Demivan merged commit 890dfa3 into main Feb 14, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Includes new features
Development

Successfully merging this pull request may close these issues.

Different variable values
1 participant