mondeja / leptos-fluent

Internationalization framework for Leptos using Fluent
https://mondeja.github.io/leptos-fluent/
MIT License
38 stars 10 forks source link

Reduce cloning and simplify some iteration #208

Closed SleeplessOne1917 closed 3 months ago

SleeplessOne1917 commented 3 months ago

Back when I was peeking at the codebase before I made this old issue, I noticed there was some cloning that didn't need to happen. In this PR, I eliminated some clones where it was easy to do so. I also expressed the parts of the code that iterate over translations in a more idiomatic way.

mondeja commented 3 months ago

That's awesome. Thank you!