Proof of concept language database database
Change-Id: I5d6b9ff4ce46c8e2d48bf56ab08f093287672467
This commit is contained in:
committed by
Santhosh Thottingal
parent
2fd23fe2e0
commit
16d2b1c33d
8
data/yaml2json.php
Normal file
8
data/yaml2json.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
include __DIR__ . '/spyc.php';
|
||||
$data = file_get_contents( 'langdb.yaml' );
|
||||
$parsed = spyc_load( $data );
|
||||
$json = json_encode( $parsed );
|
||||
$js = "window.langdb = $json;";
|
||||
file_put_contents( 'langdb.js', $js );
|
||||
Reference in New Issue
Block a user