timshadel / strong

Internationalization library for Node.js
MIT License
2 stars 1 forks source link

Difference in path resolution local / prod #3

Open dncrews opened 11 years ago

dncrews commented 11 years ago

When working locally, the following file structure works:

-- locale
    -- header.json
    -- _nav.json
-- views
    -- header.ejs
    -- partials
        -- _nav.json

When it should be:

-- locale
    -- header.json
    -- partials
        -- _nav.json
-- views
    -- header.ejs
    -- partials
        -- _nav.json

The latter works on production. The former (false positive) only works locally. I wish it did not work locally, since it's giving me a false sense of security.

jamischarles commented 11 years ago

As part of this, apparently underscores aren't allowed in the name (except as a prefix).

_footer_hf_apr_exp_en.json (this failed to resolve) _footer-hf-apr-exp_en.json (this worked)

Nevermind. I thought this worked, but it still fails. I can't for the life of me figure out why it's failing remotely.

Perhaps @timshadel Can help me troubleshoot this sometime today...