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
Add support to translations to codeceptjs #189
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b684f21
changes to support translation of codecept helpers and report through…
abner c06bd50
added alternative I method o Actor Objects reflecting the I translate…
abner 4dea684
added translationFiles.
abner 7ae2e33
adjustmento in pt-BR translation
abner f45d21f
added support to have known translations.
abner 6e0350a
changed to make `codeceptjs def ` generate typescript definitions wit…
abner 39e4d22
fixed actor tests
abner File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ | ||
exports['pt-BR'] = require('./pt-BR'); |
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,56 @@ | ||
|
||
|
||
module.exports = { | ||
I: 'Eu', | ||
actions: { | ||
'amOutsideAngularApp': 'naoEstouEmAplicacaoAngular', | ||
'amInsideAngularApp': 'estouNaAplicacaoAngular', | ||
'waitForElement': 'aguardoPeloElemento', | ||
'waitForClickable': 'aguardoPorClicavel', | ||
'waitForVisible': 'aguardoPorVisivel', | ||
'waitForText': 'aguardoPorTexto', | ||
'moveTo': 'movoPara', | ||
'refresh': 'atualizoAPagina', | ||
'haveModule': 'temModulo', | ||
'resetModule': 'resetoModulo', | ||
'amOnPage': 'estouNaPagina', | ||
'click': 'clico', | ||
'doubleClick': 'clicoDuplamente', | ||
'see': 'vejo', | ||
'dontSee': 'naoVejo', | ||
'selectOption': 'selecionoAOpcao', | ||
'fillField': 'preenchoOCampo', | ||
'pressKey': 'pressioneATecla', | ||
'attachFile': 'anexaOArquivo', | ||
'seeInField': 'vejoNoCampo', | ||
'dontSeeInField': 'naoVejoNoCampo', | ||
'appendField': 'adicionaCampo', | ||
'checkOption': 'marcoOpcao', | ||
'seeCheckboxIsChecked': 'vejoCheckboxMarcado', | ||
'dontSeeCheckboxIsChecked': 'naoVejoCheckboxMarcado', | ||
'grabTextFrom': 'pegoTextoDe', | ||
'grabValueFrom': 'pegoValorDe', | ||
'grabAttributeFrom': 'pegoAtributoDe', | ||
'seeInTitle': 'VejoNoTitulo', | ||
'dontSeeInTitle': 'naoVejoNoTitulo', | ||
'grabTitle': 'pegoOTitulo', | ||
'seeElement': 'vejoElemento', | ||
'dontSeeElement': 'naoVejoElemento', | ||
'seeInSource': 'vejoNoCodigo', | ||
'dontSeeInSource': 'naoVejoNoCodigo', | ||
'executeScript': 'executoScript', | ||
'executeAsyncScript': 'executoScriptAssincrono', | ||
'seeInCurrentUrl': 'vejoNaUrl', | ||
'dontSeeInCurrentUrl': 'naoVejoNaUrl', | ||
'seeCurrentUrlEquals': 'vejoUrlIgualA', | ||
'dontSeeCurrentUrlEquals': 'naoVejoUrlIgualA', | ||
'saveScreenshot': 'salvoCapturaDeTela', | ||
'setCookie': 'definoCookie', | ||
'clearCookie': 'limpoCookies', | ||
'seeCookie': 'vejoCookie', | ||
'dontSeeCookie': 'naoVejoCookie', | ||
'grabCookie': 'pegoCookie', | ||
'resizeWindow': 'redimensionaJanela', | ||
'wait': 'aguardo' | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Suggestion: The explicit call to
module.exports
is really necessary? I think that the translation file needs be a plain.json
file instead a.js
fileThere 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.
Looks reasonable to me to have it as
.json
but I don't see if it is necessary