Skip to content

Simplify Bundle to accept single file instead of list#37

Merged
LilyFirefly merged 1 commit intokraken-tech:mainfrom
salvatore-giammanco:refactor/simplify-rust-api
Jan 30, 2026
Merged

Simplify Bundle to accept single file instead of list#37
LilyFirefly merged 1 commit intokraken-tech:mainfrom
salvatore-giammanco:refactor/simplify-rust-api

Conversation

@salvatore-giammanco
Copy link
Contributor

@salvatore-giammanco salvatore-giammanco commented Jan 29, 2026

Summary

The Bundle constructor now takes a single ftl_filename parameter instead of a list of filenames. We don't need to support multiple locations or multiple files in a Bundle.

Future consideration

Explore removing the Bundle concept entirely and simplifying to a Resource as described in the fluent-bundle crate.


@salvatore-giammanco
Copy link
Contributor Author

I might explore the idea of removing the Bundle in the next few days

@salvatore-giammanco salvatore-giammanco marked this pull request as ready for review January 29, 2026 16:39
@salvatore-giammanco salvatore-giammanco requested a review from a team as a code owner January 29, 2026 16:39
Copy link
Contributor

@LilyFirefly LilyFirefly left a comment

Choose a reason for hiding this comment

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

Looks good to me! I think continuing to move to exposing Resource rather than Bundle makes sense too. If we discover in the future that we do need the existing behaviour we can always add back support.

Comment on lines +201 to +189
2 │
2 │
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this whitespace is load-bearing.

Copy link
Contributor Author

@salvatore-giammanco salvatore-giammanco Jan 30, 2026

Choose a reason for hiding this comment

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

I re-added it for now, but the linter keeps removing it automatically which is very annoying. Thanks for the review!

The Bundle constructor now takes a single ftl_filename parameter
instead of a list of filenames. We don't need to support multiple
locations for files, nor multiple files in a Bundle
@salvatore-giammanco salvatore-giammanco force-pushed the refactor/simplify-rust-api branch from e1e29fa to 8044f07 Compare January 30, 2026 08:38
@LilyFirefly LilyFirefly merged commit 97036ff into kraken-tech:main Jan 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants