Last active
August 8, 2023 08:05
-
-
Save ahmedsayedabdelsalam/c51f0a03a35d827bd474da554b860358 to your computer and use it in GitHub Desktop.
laravel localazy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"upload": { | |
"files": [ | |
{ | |
"type": "php", | |
"pattern": "lang/en/**.php" | |
}, | |
{ | |
"group": "existing", | |
"type": "php", | |
"pattern": "lang/*/**.php", | |
"excludes": [ | |
"lang/en/**.php" | |
], | |
"lang": "${autodetectLang}" | |
}, | |
{ | |
"type": "json", | |
"pattern": "lang/*.json", | |
"lang": "${autodetectLang}", | |
"features": ["source_is_key"] | |
} | |
] | |
}, | |
"download": { | |
"files": [ | |
{ | |
"conditions": "equals: ${fileExt}, php", | |
"output": "lang/${lang}/${file}" | |
}, | |
{ | |
"conditions": "equals: ${fileExt}, json", | |
"output": "lang/${lang}.json" | |
} | |
] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"writeKey": "<localazy-write-key>", | |
"readKey": "<localazy-read-key>" | |
} |
you may need to upload --force
first time if you get an error that no source file for the json files.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
keys in localazy.keys.json file