String Extraction - Localization

Hi team,

I am trying to extract the Theia strings for language localization process. I’m facing some extraction errors after trying out with Theia 1.27.0. I ran the below command to extract the strings.

Try to run the command from after cd-ing into examples/browser from Theia folder after cloning 1.27.0 version.

Theia$ cd examples/browser
Theia/examples/browser$yarn extract --output ./theia_strings.json --logs ./logs.txt --files "**/*.tsx" --files "**/*.ts" --root ~<proj-workspace-theia-1.27.0>/node_modules/@theia

The proj-workspace-theia-1.27.0 is the project that we are using alongside with Theia 1.27.0. Please check the below logs for the errors.

core/src/browser/common-frontend-contribution.ts(172,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(174,47): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(177,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(179,51): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(182,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(184,45): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(187,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(189,49): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(192,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(194,37): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(197,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(199,40): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(207,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(209,39): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(212,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(214,37): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(217,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(219,41): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(222,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(224,46): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(227,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(229,44): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(232,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(234,40): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(237,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(239,44): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(242,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(244,48): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/common-frontend-contribution.ts(262,18): Could not resolve reference to 'VIEW_CATEGORY'
core/src/browser/common-frontend-contribution.ts(264,44): Could not resolve reference to 'VIEW_CATEGORY_KEY'
core/src/browser/keyboard/browser-keyboard-frontend-contribution.ts(27,34): 'nls.getDefaultKey(KEYBOARD_CATEGORY)' is not a string constant
core/src/browser/shell/shell-layout-restorer.ts(116,14): 'CommonCommands.VIEW_CATEGORY' is not a string constant
core/src/browser/shell/shell-layout-restorer.ts(118,38): 'CommonCommands.VIEW_CATEGORY_KEY' is not a string constant
core/src/common/command.ts(61,50): Could not resolve reference to 'nlsLabelKey'
core/src/common/command.ts(63,74): Could not resolve reference to 'nlsCategoryKey'
debug/src/browser/debug-frontend-application-contribution.ts(153,18): Could not resolve reference to 'DEBUG_CATEGORY'
debug/src/browser/debug-frontend-application-contribution.ts(156,34): Could not resolve reference to 'DEBUG_CATEGORY_KEY'
debug/src/browser/debug-frontend-application-contribution.ts(159,18): Could not resolve reference to 'DEBUG_CATEGORY'
debug/src/browser/debug-frontend-application-contribution.ts(162,31): Could not resolve reference to 'DEBUG_CATEGORY_KEY'
debug/src/browser/debug-frontend-application-contribution.ts(201,18): Could not resolve reference to 'DEBUG_CATEGORY'
debug/src/browser/debug-frontend-application-contribution.ts(203,15): 'nlsEditBreakpoint('Breakpoint')' is not a string constant
debug/src/browser/debug-frontend-application-contribution.ts(204,11): Could not resolve reference to 'DEBUG_CATEGORY_KEY'
debug/src/browser/debug-frontend-application-contribution.ts(199,35): No default label found
debug/src/browser/debug-frontend-application-contribution.ts(207,18): Could not resolve reference to 'DEBUG_CATEGORY'
debug/src/browser/debug-frontend-application-contribution.ts(209,15): 'nlsEditBreakpoint('Logpoint')' is not a string constant
debug/src/browser/debug-frontend-application-contribution.ts(210,11): Could not resolve reference to 'DEBUG_CATEGORY_KEY'
debug/src/browser/debug-frontend-application-contribution.ts(205,33): No default label found
debug/src/browser/debug-frontend-application-contribution.ts(213,18): Could not resolve reference to 'DEBUG_CATEGORY'
debug/src/browser/debug-frontend-application-contribution.ts(215,15): 'nlsRemoveBreakpoint('Breakpoint')' is not a string constant
debug/src/browser/debug-frontend-application-contribution.ts(216,11): Could not resolve reference to 'DEBUG_CATEGORY_KEY'
debug/src/browser/debug-frontend-application-contribution.ts(211,37): No default label found
debug/src/browser/debug-frontend-application-contribution.ts(219,18): Could not resolve reference to 'DEBUG_CATEGORY'
debug/src/browser/debug-frontend-application-contribution.ts(221,15): 'nlsRemoveBreakpoint('Logpoint')' is not a string constant
debug/src/browser/debug-frontend-application-contribution.ts(222,11): Could not resolve reference to 'DEBUG_CATEGORY_KEY'
debug/src/browser/debug-frontend-application-contribution.ts(217,35): No default label found
debug/src/browser/debug-frontend-application-contribution.ts(228,46): No default label found
debug/src/browser/debug-frontend-application-contribution.ts(281,18): Could not resolve reference to 'DEBUG_CATEGORY'
debug/src/browser/debug-frontend-application-contribution.ts(283,42): Could not resolve reference to 'DEBUG_CATEGORY_KEY'
editor/src/browser/editor-command.ts(126,18): 'CommonCommands.VIEW_CATEGORY' is not a string constant
editor/src/browser/editor-command.ts(32,32): 'nls.getDefaultKey(EDITOR_CATEGORY)' is not a string constant
filesystem/src/browser/download/file-download-command-contribution.ts(79,18): 'CommonCommands.FILE_CATEGORY' is not a string constant
filesystem/src/browser/download/file-download-command-contribution.ts(81,44): 'CommonCommands.FILE_CATEGORY_KEY' is not a string constant
filesystem/src/browser/filesystem-frontend-contribution.ts(42,18): 'CommonCommands.FILE_CATEGORY' is not a string constant
filesystem/src/browser/filesystem-frontend-contribution.ts(44,39): 'CommonCommands.FILE_CATEGORY_KEY' is not a string constant
markers/src/browser/problem/problem-contribution.ts(58,33): 'nls.getDefaultKey('Problems')' is not a string constant
messages/src/browser/notifications-commands.ts(23,39): 'nls.getDefaultKey(NOTIFICATIONS_CATEGORY)' is not a string constant
mini-browser/src/browser/mini-browser-open-handler.ts(86,35): 'MiniBrowserCommands.PREVIEW_CATEGORY_KEY' is not a string constant
mini-browser/src/browser/mini-browser-open-handler.ts(300,32): 'MiniBrowserCommands.PREVIEW_CATEGORY_KEY' is not a string constant
monaco-editor-core/src/vs/base/browser/ui/actionbar/actionViewItems.ts(326,26): '{ key: 'titleLabel', comment: ['action title', 'action keybinding'] }' is not a string constant
monaco-editor-core/src/vs/base/browser/ui/inputbox/inputBox.ts(643,53): '{ key: 'history.inputbox.hint', comment: ['Text will be prefixed with \u21C5 plus a single space, then used as a hint where input field keeps history'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(64,25): '{ key: 'ctrlKey', comment: ['This is the short form for the Control key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(65,26): '{ key: 'shiftKey', comment: ['This is the short form for the Shift key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(66,24): '{ key: 'altKey', comment: ['This is the short form for the Alt key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(67,25): '{ key: 'windowsKey', comment: ['This is the short form for the Windows key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(71,25): '{ key: 'ctrlKey', comment: ['This is the short form for the Control key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(72,26): '{ key: 'shiftKey', comment: ['This is the short form for the Shift key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(73,24): '{ key: 'altKey', comment: ['This is the short form for the Alt key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(74,25): '{ key: 'superKey', comment: ['This is the short form for the Super key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(84,25): '{ key: 'ctrlKey.long', comment: ['This is the long form for the Control key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(85,26): '{ key: 'shiftKey.long', comment: ['This is the long form for the Shift key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(86,24): '{ key: 'optKey.long', comment: ['This is the long form for the Alt/Option key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(87,25): '{ key: 'cmdKey.long', comment: ['This is the long form for the Command key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(91,25): '{ key: 'ctrlKey.long', comment: ['This is the long form for the Control key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(92,26): '{ key: 'shiftKey.long', comment: ['This is the long form for the Shift key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(93,24): '{ key: 'altKey.long', comment: ['This is the long form for the Alt key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(94,25): '{ key: 'windowsKey.long', comment: ['This is the long form for the Windows key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(98,25): '{ key: 'ctrlKey.long', comment: ['This is the long form for the Control key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(99,26): '{ key: 'shiftKey.long', comment: ['This is the long form for the Shift key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(100,24): '{ key: 'altKey.long', comment: ['This is the long form for the Alt key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/base/common/keybindingLabels.ts(101,25): '{ key: 'superKey.long', comment: ['This is the long form for the Super key on the keyboard'] }' is not a string constant
monaco-editor-core/src/vs/editor/browser/editorExtensions.ts(577,23): '{ key: 'miUndo', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/browser/editorExtensions.ts(601,23): '{ key: 'miRedo', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/browser/editorExtensions.ts(624,23): '{ key: 'miSelectAll', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/browser/widget/diffReview.ts(615,50): '{
			key: 'header',
			comment: [
				'This is the ARIA label for a git diff header.',
				'A git diff header looks like this: @@ -154,12 +159,39 @@.',
				'That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.',
				'Variables 0 and 1 refer to the diff index out of total number of diffs.',
				'Variables 2 and 4 will be numbers (a line number).',
				'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.'
			]
		}' is not a string constant
monaco-editor-core/src/vs/editor/browser/widget/diffReview.ts(768,32): '{ key: 'unchangedLine', comment: ['The placeholders are contents of the line and should not be translated.'] }' is not a string constant
monaco-editor-core/src/vs/editor/common/config/editorOptions.ts(4806,38): '{
				key: 'multiCursorModifier',
				comment: [
					'- `ctrlCmd` refers to a value the setting can take and should not be localized.',
					'- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized.'
				]
			}' is not a string constant
monaco-editor-core/src/vs/editor/common/config/editorOptions.ts(5076,18): '{
					key: 'wordWrap.wordWrapColumn',
					comment: [
						'- `editor.wordWrapColumn` refers to a different setting and should not be localized.'
					]
				}' is not a string constant
monaco-editor-core/src/vs/editor/common/config/editorOptions.ts(5082,18): '{
					key: 'wordWrap.bounded',
					comment: [
						'- viewport means the edge of the visible window size.',
						'- `editor.wordWrapColumn` refers to a different setting and should not be localized.'
					]
				}' is not a string constant
monaco-editor-core/src/vs/editor/common/config/editorOptions.ts(5090,30): '{
				key: 'wordWrap',
				comment: [
					'- \'off\', \'on\', \'wordWrapColumn\' and \'bounded\' refer to values the setting can take and should not be localized.',
					'- `editor.wordWrapColumn` refers to a different setting and should not be localized.'
				]
			}' is not a string constant
monaco-editor-core/src/vs/editor/common/config/editorOptions.ts(5113,38): '{
				key: 'wordWrapColumn',
				comment: [
					'- `editor.wordWrap` refers to a different setting and should not be localized.',
					'- \'wordWrapColumn\' and \'bounded\' refer to values the different setting can take and should not be localized.'
				]
			}' is not a string constant
monaco-editor-core/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.ts(376,23): '{ key: 'miGoToBracket', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/clipboard/browser/clipboard.ts(51,23): '{ key: 'miCut', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/clipboard/browser/clipboard.ts(88,23): '{ key: 'miCopy', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/clipboard/browser/clipboard.ts(127,23): '{ key: 'miPaste', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/comment/browser/comment.ts(96,25): '{ key: 'miToggleLineComment', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/comment/browser/comment.ts(152,25): '{ key: 'miToggleBlockComment', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/find/browser/findController.ts(512,23): '{ key: 'miFind', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/find/browser/findController.ts(824,23): '{ key: 'miReplace', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/gotoError/browser/gotoError.ts(250,25): '{ key: 'miGotoNextProblem', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/gotoError/browser/gotoError.ts(272,25): '{ key: 'miGotoPreviousProblem', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.ts(824,25): '{ key: 'miGotoDefinition', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.ts(835,25): '{ key: 'miGotoDeclaration', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.ts(847,25): '{ key: 'miGotoTypeDefinition', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.ts(858,25): '{ key: 'miGotoImplementation', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.ts(869,25): '{ key: 'miGotoReference', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/hover/browser/hover.ts(229,24): '{
				key: 'showHover',
				comment: [
					'Label for action that will trigger the showing of a hover in the editor.',
					'This allows for users to show the hover without using the mouse.'
				]
			}' is not a string constant
monaco-editor-core/src/vs/editor/contrib/hover/browser/hover.ts(266,24): '{
				key: 'showDefinitionPreviewHover',
				comment: [
					'Label for action that will trigger the showing of definition preview hover in the editor.',
					'This allows for users to show the definition preview hover without using the mouse.'
				]
			}' is not a string constant
monaco-editor-core/src/vs/editor/contrib/indentation/browser/indentation.ts(234,62): '{ key: 'selectTabWidth', comment: ['Tab corresponds to the tab key'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/linesOperations/browser/linesOperations.ts(91,25): '{ key: 'miCopyLinesUp', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/linesOperations/browser/linesOperations.ts(114,25): '{ key: 'miCopyLinesDown', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/linesOperations/browser/linesOperations.ts(132,25): '{ key: 'miDuplicateSelection', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/linesOperations/browser/linesOperations.ts(205,25): '{ key: 'miMoveLinesUp', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/linesOperations/browser/linesOperations.ts(228,25): '{ key: 'miMoveLinesDown', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/multicursor/browser/multicursor.ts(62,25): '{ key: 'miInsertCursorAbove', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/multicursor/browser/multicursor.ts(115,25): '{ key: 'miInsertCursorBelow', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/multicursor/browser/multicursor.ts(164,25): '{ key: 'miInsertCursorAtEndOfEachLineSelected', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/multicursor/browser/multicursor.ts(708,25): '{ key: 'miAddSelectionToNextFindMatch', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/multicursor/browser/multicursor.ts(728,25): '{ key: 'miAddSelectionToPreviousFindMatch', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/multicursor/browser/multicursor.ts(786,25): '{ key: 'miSelectHighlights', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/smartSelect/browser/smartSelect.ts(169,25): '{ key: 'miSmartSelectGrow', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/smartSelect/browser/smartSelect.ts(198,25): '{ key: 'miSmartSelectShrink', comment: ['&& denotes a mnemonic'] }' is not a string constant
monaco-editor-core/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.ts(21,24): '{ key: 'toggle.tabMovesFocus', comment: ['Turn on/off use of tab key for moving focus around VS Code'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(96,18): '{ key: 'externalRemoval', comment: ['{0} is a list of filenames'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(104,18): '{ key: 'noParallelUniverses', comment: ['{0} is a list of filenames'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(835,18): '{ key: 'cannotWorkspaceUndo', comment: ['{0} is a label for an operation. {1} is another message.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(846,18): '{ key: 'cannotWorkspaceUndo', comment: ['{0} is a label for an operation. {1} is another message.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(865,18): '{ key: 'cannotWorkspaceUndoDueToChanges', comment: ['{0} is a label for an operation. {1} is a list of filenames.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(883,18): '{ key: 'cannotWorkspaceUndoDueToInProgressUndoRedo', comment: ['{0} is a label for an operation. {1} is a list of filenames.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(896,18): '{ key: 'cannotWorkspaceUndoDueToInMeantimeUndoRedo', comment: ['{0} is a label for an operation. {1} is a list of filenames.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(949,19): '{ key: 'ok', comment: ['{0} denotes a number that is > 1'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(1008,33): '{ key: 'cannotResourceUndoDueToInProgressUndoRedo', comment: ['{0} is a label for an operation.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(1188,18): '{ key: 'cannotWorkspaceRedo', comment: ['{0} is a label for an operation. {1} is another message.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(1199,18): '{ key: 'cannotWorkspaceRedo', comment: ['{0} is a label for an operation. {1} is another message.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(1218,18): '{ key: 'cannotWorkspaceRedoDueToChanges', comment: ['{0} is a label for an operation. {1} is a list of filenames.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(1236,18): '{ key: 'cannotWorkspaceRedoDueToInProgressUndoRedo', comment: ['{0} is a label for an operation. {1} is a list of filenames.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(1249,18): '{ key: 'cannotWorkspaceRedoDueToInMeantimeUndoRedo', comment: ['{0} is a label for an operation. {1} is a list of filenames.'] }' is not a string constant
monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(1297,33): '{ key: 'cannotResourceRedoDueToInProgressUndoRedo', comment: ['{0} is a label for an operation.'] }' is not a string constant
monaco/src/browser/monaco-frontend-module.ts(24,31): 'nls.getDefaultKey(label)' is not a string constant
navigator/src/browser/navigator-contribution.ts(90,18): 'CommonCommands.FILE_CATEGORY' is not a string constant
navigator/src/browser/navigator-contribution.ts(92,37): 'CommonCommands.FILE_CATEGORY_KEY' is not a string constant
navigator/src/browser/navigator-contribution.ts(95,18): 'CommonCommands.FILE_CATEGORY' is not a string constant
navigator/src/browser/navigator-contribution.ts(98,34): 'CommonCommands.FILE_CATEGORY_KEY' is not a string constant
output/src/browser/output-commands.ts(23,32): 'nls.getDefaultKey(OUTPUT_CATEGORY)' is not a string constant
output/src/browser/output-commands.ts(54,33): No default label found
output/src/browser/output-commands.ts(23,32): 'nls.getDefaultKey(OUTPUT_CATEGORY)' is not a string constant
output/src/browser/output-commands.ts(60,32): No default label found
output/src/browser/output-commands.ts(23,32): 'nls.getDefaultKey(OUTPUT_CATEGORY)' is not a string constant
output/src/browser/output-commands.ts(66,34): No default label found
output/src/browser/output-commands.ts(23,32): 'nls.getDefaultKey(OUTPUT_CATEGORY)' is not a string constant
output/src/browser/output-commands.ts(23,32): 'nls.getDefaultKey(OUTPUT_CATEGORY)' is not a string constant
output/src/browser/output-commands.ts(23,32): 'nls.getDefaultKey(OUTPUT_CATEGORY)' is not a string constant
output/src/browser/output-commands.ts(23,32): 'nls.getDefaultKey(OUTPUT_CATEGORY)' is not a string constant
preview/src/browser/preview-contribution.ts(59,35): 'MiniBrowserCommands.PREVIEW_CATEGORY_KEY' is not a string constant
task/src/browser/task-frontend-contribution.ts(35,30): 'nls.getDefaultKey(TASK_CATEGORY)' is not a string constant
task/src/browser/task-frontend-contribution.ts(54,38): No default label found
task/src/browser/task-frontend-contribution.ts(35,30): 'nls.getDefaultKey(TASK_CATEGORY)' is not a string constant
task/src/browser/task-frontend-contribution.ts(35,30): 'nls.getDefaultKey(TASK_CATEGORY)' is not a string constant
task/src/browser/task-frontend-contribution.ts(35,30): 'nls.getDefaultKey(TASK_CATEGORY)' is not a string constant
workspace/src/browser/workspace-commands.ts(48,26): 'CommonCommands.FILE_CATEGORY' is not a string constant
workspace/src/browser/workspace-commands.ts(85,46): 'CommonCommands.FILE_CATEGORY_KEY' is not a string constant
workspace/src/browser/workspace-commands.ts(48,26): 'CommonCommands.FILE_CATEGORY' is not a string constant
workspace/src/browser/workspace-commands.ts(119,36): 'CommonCommands.FILE_CATEGORY_KEY' is not a string constant
workspace/src/browser/workspace-commands.ts(48,26): 'CommonCommands.FILE_CATEGORY' is not a string constant
workspace/src/browser/workspace-commands.ts(124,47): 'CommonCommands.FILE_CATEGORY_KEY' is not a string constant

I would highly appreciate any help on this. Thanks in advance.

Also, do let me know if the question is not clear.

Regards,
Chid

Hey @chid.crushev,

these log entries are not errors but just warnings. They shouldn’t prevent you from generating the theia_strings.json file. These warnings exist because we often use the nls.localize function in a way that isn’t intended internally. On another note, it’s not necessary for you to run the command on the Theia repo yourself, as we commit all translation files (see below for 1.27.0):

Thanks for the reply. However, if you see the below log, the key cannotResourceRedoDueToInProgressUndoRedo doesn’t exist here( eclipse-theia/theia/blob/c8c95adf1931a4f2d81e4b907cca5fd9d5c568ce/packages/core/i18n/nls.json

monaco-editor-core/src/vs/platform/undoRedo/common/undoRedoService.ts(1297,33): '{ key: 'cannotResourceRedoDueToInProgressUndoRedo', comment: ['{0} is a label for an operation.'] }' is not a string constant

Do you know why the key(cannotResourceRedoDueToInProgressUndoRedo) is not available in the nls.json? Is there a way that I can pull up this key by solving the above error and extract it?

Regards,
Chid

@chid.crushev sorry for the delayed answer:

These are strings that come from monaco/vscode (see the vs in the src path). We don’t localize them ourselves, but use vscode language packs for them instead.

Thanks for the update.

Regards,
Chid.