Closed zakidze closed 3 months ago
You can try latest version (npm i @nimpl/inio@0.8.3-canary.2 -g
) and test multiple pattern:
module.exports = {
experimental: {
pattern: ["i18n/<key>/footer.json", "i18n/<key>/test.json"],
ignore: ["i18n/wrong/footer.json"],
},
};
Then just use "missings" filter
i will test but one thing shold i put the config in the root localez folder then open inio there?
i liked the multi pattern its really great , it would be cool also to
configure this multi pattern in the UI
i will test but one thing shold i put the config in the root localez folder then open inio there?
Put it where you usually run inio
configure this multi pattern in the UI
Already in progress:
make it a combobox select box with checkbox
so i wont have to type each pattern they
the jsons appare in select box and i select what i want
now you got your way to let inio knows about structured jsons
same with selecting one pattern in the UI but with checkboxs so i can select multiple at once
What if inio found hundreds of files? What if suddenly thousands? How to determine what is the "key" in these paths?
then just let the user desides with checkbox
i find how i currently set the pattern is easy
like a select box and i scroll throught folders and all
however i d like to use checkboxes same UI but with checkboxses
its like a pattern bulk builder helper
But how to determine what is the "key" in these paths?
look i have alot of jsons i d like to just add checkboxes so insted of selecting 1 pattern i select all of them
like this i have to switch one by one
i dont want to write everything just a single select i chose with checkbox whats included and thats it
you can see my list is long but i want to include all thoes jsons
also a configuration can be exported so i can use it the next time and that is related to this issue:
https://github.com/vordgi/nimpl-inio/issues/108
i want to open inio from one place and save the dir of multiple projects and also thoes pattern for multiple projects in my disk loccaly
You will be able to write <key>/*.json
and it will match all your files
now thats wild you shold include this to trick the docs
a checkbox to be usuful so i can select what i want not nessisarly everything
ps i just tested the multiple pattern it work veryyyy nice
Got it, thanks!
by the way you shold group the jsons by their name of file like when specifying for bulk jsons there shold be header with group of keys speicfying the file name
+
a filter to show or hide the pattern quick and fast you know just some filters
What if my structure: terms --header ----en.json ----de.json --footer ----en.json ----de.json
donno what will be happen right there
but we shold make a config for patterns like for unusual patterns and point jsons mannually
at first specify in the docs that this is the recomonded way
and if you want somthing costum then you shold do some manuel work
You will be able to write
i tryed this right now but it did not work so i have to type everyhting mannually
It's in work right now
add this to the list a header to indicate where are thoes keys else its a mess
Patterns editing via UI shipped!
you added the * star?
u can close this issie if you want since this feature is shipped
https://x.com/i/status/1808962108224385236 Here a little demo
Thank you for your help! I will also try to think about an implementation for checkboxes.
i shold be included as a co fouder as alot of ideas are mine including the start of this projectπ€£π π
well : a thank you to you too like honestly arriving to this point i know its alot of hard work
its pleasure to see this project going so thank you
To be honest, part of this functionality already existed, as I have a lot of work with translations at job (10 regions and dozens of services π¬). I needed a reason to bring all this together into a full-fledged service. And thank you for this reason!) π
I hope this will be a project that brings benefits, rather than leading to my burnout π
now whats next?
Relax) Then think about some personal ideas. Maybe I'll work at #61
you know best goodluck
i recomond starting with the duplicates issue as its more important
load jsons thought multiple patterns
select a common json
and show duplicates of the common json and sujjest to move them
i want to open inio in root locales folder it scanes all local
then it retunes a single page where it retunres all the missing value...
in all files
its like a summary of missing values