Repository navigation
Pu/issue 36 #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pu/issue 36 #287
Changes from 47 commits
98f8d62
f1d0779
39878ef
714c54e
6384127
7225021
a7de553
aaeee08
6aaccd1
be008c8
daa2b48
3b223ea
b4bb05f
54a5db7
0fa35dc
81c6e09
b738e05
4cd791e
333506c
85dac1d
7f6406e
7661eb1
971836e
233252a
ab59d18
3f15681
ac896f9
d171099
e36307e
1be0607
4f98beb
71b4b2f
2d48d1a
f0f7209
dbd00f0
30ec7cb
c92543f
378911a
3c139a9
a191810
f21eb53
4b6e209
0381289
3321f89
355ea84
f9897de
754efff
7df5981
edb4486
4c15583
f910846
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import { CellError, EmptyValue } from './Cell' | ||
| import { CellError, EmptyValue, ErrorType } from './Cell' | ||
| import { CellValue, DetailedCellError, ExportedCellChange, ExportedNamedExpressionChange } from './CellValue' | ||
| import { | ||
| InvalidAddressError, | ||
|
|
@@ -10,7 +10,8 @@ import { | |
| } from './errors' | ||
| import {Sheets} from './GraphBuilder' | ||
| import {HyperFormula} from './HyperFormula' | ||
| import {enGB} from './i18n' | ||
| import {Config} from './Config' | ||
| import {languages} from './i18n' | ||
| import {LazilyTransformingAstService} from './LazilyTransformingAstService' | ||
|
|
||
| class HyperFormulaNS extends HyperFormula { | ||
|
|
@@ -26,7 +27,8 @@ class HyperFormulaNS extends HyperFormula { | |
| public static EvaluationSuspendedError = EvaluationSuspendedError | ||
| } | ||
|
|
||
| HyperFormula.registerLanguage('enGB', enGB) | ||
| const defaultLanguage = Config.defaultConfig.language | ||
| HyperFormula.registerLanguage(defaultLanguage, languages[defaultLanguage]) | ||
|
|
||
| export default HyperFormulaNS | ||
|
|
||
|
|
@@ -46,4 +48,6 @@ export { | |
| ExportedNamedExpressionChange, | ||
| NoOperationToUndo, | ||
| EvaluationSuspendedError, | ||
| Config, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need to export Config? It's only used internally
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc: @voodoo11
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. short answer: we were having weird issues like this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. without exporting it, and changing imports, we have: 7df5981
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because of registering default language in main index.ts file, there was a problem with proper config initialization in some tests, but I didn't notice that we are not using
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, should be resolved now |
||
| ErrorType | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any new export should be added to HyperFormulaNS as well. |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be cool if for all five
Errormessages in this file we could introduce a new type:Usage:
Then we can describe them correctly within public API TSDoc. Thanks