julienrf / play-jsmessages

Library to compute localized messages of your Play application on client side

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subset keys beginning with key

leon opened this issue · comments

Instead of having to specify each key you want to include. it would be great if we could specify 'mysection.*' or alike and all keys starting with mysection. should get included.

It shouldn't be to hard to check if a keys line ends with * and in such case use a .filter(_.beginsWith(key)

might be easier to just allow the user to pass in a string => boolean filter?

@francisdb That could work too :)

Done in PR #26