Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setExtension, setExcludeExtensions & Support .json #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anirbansanu
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant