{
"documents": [
{
"name": "strings.json as json",
"file": "strings.json",
"fileType": "json",
"options": {},
"expected": [
"Welcome Home",
"https://example.com/path?query=1",
"usr_8f3k2j4h5g6",
"line one\nline two",
"trimmed value",
"Nested message",
"first item",
"second item"
]
},
{
"name": "strings.yaml as yaml",
"file": "strings.yaml",
"fileType": "yaml",
"options": {},
"expected": [
"Unquoted plain scalar",
"Double quoted value",
"Single quoted value",
"plain item",
"quoted item",
"Block scalar line one\nBlock scalar line two",
"Folded scalar text",
"inline quoted",
"bare"
]
},
{
"name": "strings.yaml as yml",
"file": "strings.yaml",
"fileType": "yml",
"options": {},
"expected": [
"Unquoted plain scalar",
"Double quoted value",
"Single quoted value",
"plain item",
"quoted item",
"Block scalar line one\nBlock scalar line two",
"Folded scalar text",
"inline quoted",
"bare"
]
},
{
"name": "strings.csv as csv",
"file": "strings.csv",
"fileType": "csv",
"options": {},
"expected": [
"name",
"message",
"count",
"Alice",
"Hello, world",
"1",
"Bob",
"She said \"hi\"",
"2",
"empty first cell",
"3",
"Dave",
"4",
"Eve",
"plain text",
"5"
]
},
{
"name": "strings.csv as csv {\"csvHasHeader\":true}",
"file": "strings.csv",
"fileType": "csv",
"options": {
"csvHasHeader": true
},
"expected": [
"Alice",
"Hello, world",
"1",
"Bob",
"She said \"hi\"",
"2",
"empty first cell",
"3",
"Dave",
"4",
"Eve",
"plain text",
"5"
]
},
{
"name": "strings.csv as csv {\"csvHasHeader\":true,\"csvColumnIndex\":1}",
"file": "strings.csv",
"fileType": "csv",
"options": {
"csvHasHeader": true,
"csvColumnIndex": 1
},
"expected": [
"Hello, world",
"She said \"hi\"",
"empty first cell",
"plain text"
]
},
{
"name": "strings.toml as toml",
"file": "strings.toml",
"fileType": "toml",
"options": {},
"expected": [
"TOML Example",
"literal string",
"Tom Preston-Werner",
"Multi-line\nbasic string",
"alpha",
"beta",
"value with # hash"
]
},
{
"name": "strings.ini as ini",
"file": "strings.ini",
"fileType": "ini",
"options": {},
"expected": [
"John Doe",
"Quoted Value",
"C:\\Users\\test",
"plain text value",
"single quoted greeting",
"8080"
]
},
{
"name": "strings.env as env",
"file": "strings.env",
"fileType": "env",
"options": {},
"expected": [
"https://api.example.com",
"quoted value",
"single value",
"value",
"value # not a comment",
"padded value",
"12345"
]
},
{
"name": "strings.txt as fallback",
"file": "strings.txt",
"fileType": "fallback",
"options": {},
"expected": [
"double quoted",
"single quoted",
"backtick quoted",
"escaped \\\"inner\\\" quote",
"spaces"
]
},
{
"name": "messages.ts as fallback",
"file": "messages.ts",
"fileType": "fallback",
"options": {},
"expected": [
"Delete this permanently?",
"This can't be undone",
"Removing ${count} items",
"It\\'s fine",
"quoted text"
]
},
{
"name": "escapes.json as json",
"file": "escapes.json",
"fileType": "json",
"options": {},
"expected": [
"readable",
"first\nsecond",
"she said \"hi\"",
"café",
"readable"
]
},
{
"name": "strings.py as python",
"file": "strings.py",
"fileType": "python",
"options": {},
"expected": [
"Module docstring.\n\nTwo lines, one string.",
"the docs",
"Greet a user politely.",
"Hello, {name}!",
"\\d+ items",
"bytes",
"raw bytes",
"single quoted",
"a # inside a string"
]
},
{
"name": "strings.py as py",
"file": "strings.py",
"fileType": "py",
"options": {},
"expected": [
"Module docstring.\n\nTwo lines, one string.",
"the docs",
"Greet a user politely.",
"Hello, {name}!",
"\\d+ items",
"bytes",
"raw bytes",
"single quoted",
"a # inside a string"
]
},
{
"name": "strings.py as fallback",
"file": "strings.py",
"fileType": "fallback",
"options": {},
"expected": [
"the docs",
"Greet a user politely.",
"Hello, {name}!",
"\\d+ items",
"bytes",
"raw bytes",
"single quoted",
"a # inside a string"
]
},
{
"name": "strings.rs as rust",
"file": "strings.rs",
"fileType": "rust",
"options": {},
"expected": [
"the docs",
"a raw \"quoted\" string",
"holds a \"# sequence",
"C:\\Users\\test",
"payload",
"say \\\"hi\\\"",
"first\nsecond"
]
},
{
"name": "strings.rs as rs",
"file": "strings.rs",
"fileType": "rs",
"options": {},
"expected": [
"the docs",
"a raw \"quoted\" string",
"holds a \"# sequence",
"C:\\Users\\test",
"payload",
"say \\\"hi\\\"",
"first\nsecond"
]
},
{
"name": "strings.go as go",
"file": "strings.go",
"fileType": "go",
"options": {},
"expected": [
"the docs",
"line one\nline two",
"double quoted",
"say \\\"hi\\\""
]
},
{
"name": "strings.sh as shellscript",
"file": "strings.sh",
"fileType": "shellscript",
"options": {},
"expected": [
"the docs",
"The heredoc body.\nSecond line.",
"No $expansion here.",
"tab indented body",
"double quoted",
"single quoted",
"$file"
]
},
{
"name": "strings.php as php",
"file": "strings.php",
"fileType": "php",
"options": {},
"expected": [
"the docs",
"the notes",
"the manual",
"Dear reader,\nWelcome.",
"No $expansion here.",
"double quoted",
"single quoted"
]
},
{
"name": "strings.rb as ruby",
"file": "strings.rb",
"fileType": "ruby",
"options": {},
"expected": [
"the docs",
"the manual",
"Dear reader,\nWelcome.",
"No #{interpolation} here.",
"double quoted",
"single quoted"
]
},
{
"name": "strings.pl as perl",
"file": "strings.pl",
"fileType": "perl",
"options": {},
"expected": [
"the docs",
"the manual",
"Dear reader,\nWelcome.",
"double quoted",
"single quoted"
]
},
{
"name": "strings.cs as csharp",
"file": "strings.cs",
"fileType": "csharp",
"options": {},
"expected": [
"the docs",
"C:\\Users\\test",
"He said \"\"hi\"\" loudly",
"first\nsecond",
"say \\\"hi\\\"",
"Hello, {name}!"
]
},
{
"name": "strings.js as javascript",
"file": "strings.js",
"fileType": "javascript",
"options": {},
"expected": [
"Welcome back",
"Press ⌘K to search",
"You have ${count} unread messages"
]
},
{
"name": "strings.ts as typescript",
"file": "strings.ts",
"fileType": "typescript",
"options": {},
"expected": [
"the docs",
"Delete this permanently?",
"This can't be undone",
"Removing ${count} items",
"Dear reader,\n\nWelcome.",
"a ${flag ? `yes` : `no`} b",
"It\\'s fine"
]
},
{
"name": "unterminated.txt as python",
"file": "unterminated.txt",
"fileType": "python",
"options": {},
"expected": [
"first",
"last"
]
},
{
"name": "unterminated.txt as rust",
"file": "unterminated.txt",
"fileType": "rust",
"options": {},
"expected": [
"first",
"a raw run that never closes\nz =",
"a verbatim run that never closes\nu = 'an apostrophe that never closes\nt ="
]
},
{
"name": "unterminated.txt as go",
"file": "unterminated.txt",
"fileType": "go",
"options": {},
"expected": [
"first",
"last"
]
},
{
"name": "unterminated.txt as shellscript",
"file": "unterminated.txt",
"fileType": "shellscript",
"options": {},
"expected": [
"first",
"a raw run that never closes\nz =",
"a verbatim run that never closes\nu = 'an apostrophe that never closes\nt ="
]
},
{
"name": "unterminated.txt as php",
"file": "unterminated.txt",
"fileType": "php",
"options": {},
"expected": [
"first",
"a triple-quoted run that never closes\nw = `a backtick run that never closes\ncat <<EOF\na heredoc body whose tag never arrives\nv = @",
"last"
]
},
{
"name": "unterminated.txt as ruby",
"file": "unterminated.txt",
"fileType": "ruby",
"options": {},
"expected": [
"first",
"a triple-quoted run that never closes\nw = `a backtick run that never closes\ncat <<EOF\na heredoc body whose tag never arrives\nv = @",
"last"
]
},
{
"name": "unterminated.txt as perl",
"file": "unterminated.txt",
"fileType": "perl",
"options": {},
"expected": [
"first",
"a triple-quoted run that never closes\nw = `a backtick run that never closes\ncat <<EOF\na heredoc body whose tag never arrives\nv = @",
"last"
]
},
{
"name": "unterminated.txt as csharp",
"file": "unterminated.txt",
"fileType": "csharp",
"options": {},
"expected": [
"first",
"a verbatim run that never closes\nu = 'an apostrophe that never closes\nt ="
]
},
{
"name": "unterminated.txt as javascript",
"file": "unterminated.txt",
"fileType": "javascript",
"options": {},
"expected": [
"first",
"last"
]
},
{
"name": "unterminated.txt as typescript",
"file": "unterminated.txt",
"fileType": "typescript",
"options": {},
"expected": [
"first",
"last"
]
},
{
"name": "unterminated.txt as fallback",
"file": "unterminated.txt",
"fileType": "fallback",
"options": {},
"expected": [
"first",
"last"
]
},
{
"name": "whitespace.env as env",
"file": "whitespace.env",
"fileType": "env",
"options": {},
"expected": [
"value",
" ",
""
]
}
]
}