f9833d40fb
refs FOO-2696 flag = none Change-Id: Ia3a3921ef146cf23db8d20cbfde84ef472f7bade Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286705 Tested-by: James Butters <jbutters@instructure.com> Reviewed-by: Charley Kline <ckline@instructure.com> QA-Review: Charley Kline <ckline@instructure.com> Product-Review: Charley Kline <ckline@instructure.com> |
||
---|---|---|
.. | ||
bin | ||
js | ||
spec | ||
.gitignore | ||
.i18nrc | ||
README.md | ||
package.json | ||
test.sh |
README.md
canvas_i18nliner
i18nliner, canvas style
this will replace the i18n_tasks and i18n_extraction gems
.i18nrc
files must glob for files to be included through the files
property:
{
"files": [
{
"pattern": "**/*.js",
"processor": "js"
},
{
"pattern": "**/*.{hbs,handlebars}",
"processor": "hbs"
}
]
}
.i18nrc
files can include other directories that may in turn specify more
files through their .i18nrc
configuration file:
{
"include": [ "relative/path/to/dir" ]
}
.i18nignore
files can exclude files from processing relative to where they
are defined (similar to .gitignore
):
// file: app/.i18nignore
foo
bar/**/*.js
The above ignore file will exclude app/foo
and app/bar/**/*.js
.
Where to place ignore lists?
The scanner will always look for an .i18nignore
adjacent to .i18nrc
, but it
will also discover and use any .i18nignore
file found between the root
and the target file:
app
├── .i18nignore
└── a
├── .i18nignore
└── b
└── c
A file under app/a/b/c/
is subject to exclusion according to rules found in
both app/.i18nignore
and app/a/.i18nignore
.