Lines Matching refs:stringFileContentsJSON
13 stringFileContentsJSON: ResourceXML
15 if (!stringFileContentsJSON?.resources?.string) {
16 if (!stringFileContentsJSON.resources || typeof stringFileContentsJSON.resources === 'string') {
18 stringFileContentsJSON.resources = {};
20 stringFileContentsJSON.resources.string = itemToAdd;
21 return stringFileContentsJSON;
25 const stringNameExists = stringFileContentsJSON.resources.string.findIndex(
30 stringFileContentsJSON.resources.string[stringNameExists] = newItem;
32 stringFileContentsJSON.resources.string =
33 stringFileContentsJSON.resources.string.concat(newItem);
36 return stringFileContentsJSON;
39 export function removeStringItem(named: string, stringFileContentsJSON: ResourceXML): ResourceXML {
40 if (stringFileContentsJSON?.resources?.string) {
41 const stringNameExists = stringFileContentsJSON.resources.string.findIndex(
46 stringFileContentsJSON.resources.string.splice(stringNameExists, 1);
49 return stringFileContentsJSON;