-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove messages and definitions (#190)
* Fix #128 * Fix #162 * Undo local dependency * Undo local dependency * Fix #186 * add game port number configuration * i18n command message * i18n extension texts * 📝 Update contributors list * Updating yarn.lock * Updating wollok-ts dependency * Fix yarn.lock & tests --------- Co-authored-by: Publishing Bot <[email protected]>
- Loading branch information
1 parent
6cb2a33
commit 23d326d
Showing
36 changed files
with
5,308 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { getMessage, LANGUAGES, Messages } from 'wollok-ts' | ||
import { wollokLSPExtensionCode } from './shared-definitions' | ||
import { workspace } from 'vscode' | ||
|
||
export const languageDescription: { [key: string]: LANGUAGES } = { | ||
Spanish: LANGUAGES.SPANISH, | ||
English: LANGUAGES.ENGLISH, | ||
} | ||
|
||
export const lang = (selectedLanguage: string): LANGUAGES => languageDescription[selectedLanguage] ?? LANGUAGES.ENGLISH | ||
|
||
export const lspClientMessages: Messages = { | ||
[LANGUAGES.ENGLISH]: { | ||
missingWollokCliPath: 'Missing configuration WollokLSP/cli-path. Set the path where wollok-ts-cli is located in order to run Wollok tasks', | ||
wollokBuilding: 'Wollok Building...', | ||
}, | ||
[LANGUAGES.SPANISH]: { | ||
missingWollokCliPath: 'Falta configurar la ruta donde está instalado wollok-ts-cli. Este paso es necesario para ejecutar cualquier comando de Wollok.', | ||
wollokBuilding: 'Generando Wollok...', | ||
}, | ||
} | ||
|
||
export const getLSPMessage = (message: string): string => getMessage({ message, language: lang(workspace.getConfiguration(wollokLSPExtensionCode).get('language')), customMessages: lspClientMessages }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.