-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Translation aliases #25
Conversation
…recursively. This allows several keys to refer to the same translation.
Hi Phil, this is fantastic - much appreciated!
I'm keen in principle if the implementation could be kept relatively simple. Am definitely open to PRs if you feel like having a go at it. Thanks again! |
Add support for translation aliases (phillipa)
OK. Scope aliases should probably be resolved at compile time, so are a Regards,
On 23/05/13 06:42, Peter Taoussanis wrote:
|
That'd be my first thought too. If you do end up taking a look at this at some point, I'd also consider possibly making the standard aliases compile time while you're at it As an aside - always enjoy the high quality of your contributions. Wish everyone provided "benefits" on PRs for example, nice idea. |
Hi philipa, Am busy experimenting with some breaking changes to the While I was at it, I incorporated your previous alias mechanism into the dictionary compiler. To keep things simple, I did this as only a single-phase transform: https://github.com/ptaoussanis/tower/blob/v2/src/taoensso/tower.clj#L290 Your implementation supported >1 step aliasing. Is that actually a requirement in your use case, or would the current (single-step) implementation be okay? Cheers :-) |
Sorry I've not been able to work on this myself - I've got a new job IRL. For my needs, 1 step aliasing is fine, so long as it does something obvious if you chain aliases. |
Great, okay - will keep the simple implementation then. And absolutely no need to apologize - wasn't waiting for you, only working on this now since I wanted to replace the config atom and was refactoring the compiler.
It'll just count chained aliases as nil (missing) translations. |
Peter,
What do you think to aliases in dictionaries:
Usage:
?
Benefits:
If you like this, you might also consider allowing
- Phil