question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

directory organization / recursive directory scan?

See original GitHub issue

In large projects with lots of localized strings, having just 1 file for all the translations per language gets hard to manage. How should I split and organize my locale files to better work on them? I see that this tool doesn’t support merging more that one locale file (which I think would be the first requirement), which would allow things like:

| - locales\
| ---- admin\
| -------- en.json
| -------- es.json
| ---- frontend\
| -------- en.json
| -------- es.json
| ---- mobile\
| -------- en.json
| -------- es.json

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:2
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mogadanezcommented, Jan 28, 2019

Hi,

I have another structure comes from another projects which I want to reuse,

| - locales
|---en
| -----common.json
| -----specific.json
|---de
| -----common.json
| -----specific.json

is it possible to load such structure? can middleware helps in it?

0reactions
mashpiecommented, Jul 21, 2016

this is how test cover autoreload. Check out https://github.com/mashpie/i18n-node/blob/master/test/i18n.configureAutoreload.js to get an idea. It’s basically accomplished by configure autoreload and write json files after startup.

I’ll take a dive into module manager… looks promising 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

HOW TO: Use File Scanner options Recursive Scan and First ...
The following displays how the usage of Recursive Scan option and First Level Directory changes the scan behavior of a File scanner:
Read more >
How to show recursive directory listing on Linux or Unix
ls -R : Use the ls command to get recursive directory listing on Linux ; find /dir/ -print : Run the find command...
Read more >
Put into map after recursive directory-scan - Stack Overflow
I am trying to programm a tool, which does replicate updated files into a folder structure. This folder structure is separated into ...
Read more >
How to scan through a directory recursively in Python?
You can use the os.walk function to walk through the directory tree in python. example. import os for dirpath, dirs, files in os.walk("....
Read more >
Python Tutorial: Traversing directories recursively - 2020
Python Tutorial: Traversing directories recursively. ... bogotobogo.com site search: ... Listing files in directories recursively? Here is the code:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found