mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 14:51:44 +03:00
770e18768a
- Closes https://github.com/enso-org/cloud-v2/issues/861 - Adds a `getText` function and React Context to abstract away all text that is shown to users The main immediate benefit is making all text much more discoverable - both being able to know of every piece of text used across the entire application, and making it a lot easier to refactor certain strings when needed rather than having to hunt for strings to replace (and potentially miss one). The longer term benefit is that this will make it easy to add localization, by simply adding another JSON file with the same keys as the existing one, and adding a little bit of logic. # Important Notes None
27 lines
465 B
JSON
27 lines
465 B
JSON
{
|
|
"extends": "../../tsconfig.json",
|
|
"include": [
|
|
"src",
|
|
"e2e",
|
|
"../types",
|
|
"./src/**/*.json",
|
|
"../../utils.ts",
|
|
".prettierrc.cjs",
|
|
"*.js",
|
|
"*.ts"
|
|
],
|
|
"exclude": ["./dist"],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"noEmit": false,
|
|
"outDir": "../../../../node_modules/.cache/tsc",
|
|
"paths": { "#/*": ["./src/*"] },
|
|
|
|
"plugins": [
|
|
{
|
|
"name": "ts-plugin-namespace-auto-import"
|
|
}
|
|
]
|
|
}
|
|
}
|