Advertisement
Virajsinh

Laravel JSON Language File Generate Bat File

Nov 12th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.59 KB | Source Code | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3.  
  4. :: Define the supported languages array
  5. set supportedLanguages=af,am,ar,az,be,bg,bn,bs,ca,cs,cy,da,de,dv,el,en,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja,ka,kk,km,kn,ko,ky,lt,lv,mk,ml,mn,mr,ms,mt,nb,ne,nl,nn,no,or,pa,pl,ps,pt,ro,ru,sd,si,sk,sl,sq,sr,sv,sw,ta,te,th,tr,uk,ur,uz,vi,xh,zh,zu
  6.  
  7. :: Loop through each language code and create a JSON file for it
  8. for %%a in (%supportedLanguages%) do (
  9.     echo { > %%a.json
  10.     echo     "language": "%%a" >> %%a.json
  11.     echo } >> %%a.json
  12.     echo %%a.json file has been created.
  13. )
  14.  
  15. endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement