Closed brunos3d closed 4 years ago
Maybe the package should interpret keys enclosed by quotes as literal strings? For example pupa("testing {'dynamic key name'.test}", args)
should work, as strings are also valid JS keys.
I also thought that this could work. But it did not work.
I believe that another good solution would be to implement the object-path package to solve this problem.
These tests were done using RunKit
Hi. 😊 I'm using pupa in a discord bot in a multi-language system. 🤖
The files containing the translations are made up of objects with properties whose keys contain names with special characters such as spaces and
-
.However, the formatter does not find these properties. I added a simple code below simulating the environment. 😅