laravel-langman icon indicating copy to clipboard operation
laravel-langman copied to clipboard

setExtension, setExcludeExtensions & Support .json

Open anirbansanu opened this issue 2 years ago • 0 comments

Now, 1 . you can set extension using setExtension(string $extension) 2 . you can set extension using setExcludeExtensions(array $exclude_extensions) 3 . you can get all the json file content as php assoc array from getJsonFilesContent($filesByFile,$lang)
i ) $filesByFile -> return value of files() method ii ) $lang -> provide language which is in the language file path 4. filterByIncludedFileNames($filesByFile,$includedFileNames) -> you can include only specified names of files. 5. filterByExcludedFileNames($filesByFile,$excludedFileNames) -> Exclude only specified names of files. 6. getSupportedLanguages($filesByFile) -> you can get all supported languages after exclude or include. 7. writeFile($filePath, array $translations) -> updated for json file. 8. stringJsonLineMaker($translations) -> json string maker added for json file.

anirbansanu avatar Apr 18 '23 18:04 anirbansanu