Skip to content

Commit

Permalink
Merge branch 'master' into 1964-ac-update
Browse files Browse the repository at this point in the history
  • Loading branch information
corinagum authored Jun 10, 2019
2 parents 689137b + a9fba56 commit 1338650
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LOCALIZATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ If you want to help to translate Web Chat to different language, please submit a
| nl-nl | @iMicknl |
| pl-pl | @peterblazejewicz |
| pt-br | @rcarubbi, @pedropacheco92 |
| pt-pt | @bodyzatva |
| pt-pt | @bodyzatva, @tiagodenoronha |
| ru-ru | @odysseus1973, @seaen |
| sv-se | @pekspro |
| tr-tr | |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ There are several properties that you might pass into your Web Chat React Compon
| `attachmentMiddleware` | A chain of middleware that allows the developer to add their own custom HTML Elements on attachments. The signature is the following: `options => next => card => next(card)`. |
| `attachmentRenderer` | The "flattened" version of `attachmentMiddleware`. |
| `cardActionMiddleware` | A chain of middleware that allows the developer to modify card actions, like Adaptive Cards or suggested actions. The middleware signature is the following: `cardActionMiddleware: () => next => ({ cardAction, getSignInUrl }) => next(cardAction)` |
| `createDirectLine` | A factory method for instantiating the Direct Line object. Azure Government users should use `createDirectLine({ domain: 'https://directline.botframework.azure.us/v3/directline', token });` to change the endpoint. The full list of parameters are: `conversationId`, `domain`, `fetch`, `pollingInterval`, `secret`, `streamUrl`, `token`, `watermark` `webSocket`. |
| `createStore` | A chain of middleware that allows the developer to modify the store actions. The middleware signature is the following: `createStore: ({}, ({ dispatch }) => next => action => next(cardAction)` |
| `directLine` | Specify the DirectLine object with DirectLine token. |
| `disabled` | Disable the UI (i.e. for presentation mode) of Web Chat. |
Expand Down
45 changes: 33 additions & 12 deletions packages/component/src/Localization/pt-PT.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,46 @@ function xMinutesAgo(dateStr) {
});
}

function botSaidSomething(avatarInitials, text) {
return `Bot ${avatarInitials} disse, ${text}`;
}

function userSaidSomething(avatarInitials, text) {
return `User ${avatarInitials} disse, ${text}`;
}

export default {
// FAILED_CONNECTION_NOTIFICATION: '',
FAILED_CONNECTION_NOTIFICATION: 'Não foi possível ligar.',
INITIAL_CONNECTION_NOTIFICATION: 'A ligar…',
INTERRUPTED_CONNECTION_NOTIFICATION: 'Interrupção de Rede. Reconectando…',
// eslint-disable-next-line prettier/prettier
RENDER_ERROR_NOTIFICATION: 'Ocorreu um erro a renderizar. Por favor verifique a consola ou contacte o developer do bot.',
// Do not localize {Retry}; it is a placeholder for "Retry". English translation should be, "Send failed. Retry."
SEND_FAILED_KEY: `não foi possível enviar, {Retry}.`,
SLOW_CONNECTION_NOTIFICATION: 'A ligação está a demorar mais tempo que o normal.',
SEND_FAILED_KEY: 'O envio falhou. {Retry}.',
SLOW_CONNECTION_NOTIFICATION: 'A ligação está a demorar mais tempo que o normal',
'Bot said something': botSaidSomething,
'User said something': userSaidSomething,
'X minutes ago': xMinutesAgo,
// '[File of type '%1']': '[File of type '%1']",
// '[Unknown Card '%1']': '[Unknown Card '%1']',
'Adaptive Card parse error': 'Erro ao fazer parse do Adaptive Card',
'Adaptive Card render error': 'Erro ao renderizar o Adaptive Card',
Chat: 'Chat',
'Download file': 'Download ficheiro',
'Microphone off': 'Microfone desligado',
'Microphone on': 'Microfone ligado',
'Listening…': 'A Escutar…',
Retry: 'repetir',
'Download file': 'Descarregar ficheiro',
Left: 'Esquerda',
'Listening…': 'A escutar…',
'Microphone off': 'Desligar microfone',
'Microphone on': 'Ligar microfone',
'New messages': 'Novas mensagens',
Retry: 'Tentar novamente',
Right: 'Direita',
Send: 'Enviar',
Sending: 'a enviar',
Sending: 'A enviar',
Speak: 'Falar',
'Starting…': 'A iniciar…',
Tax: 'Imposto',
Total: 'Total',
'Type your message': 'Escreva a sua mensagem',
'Upload file': 'Upload de ficheiro',
VAT: 'IVA',
'X minutes ago': xMinutesAgo
'Upload file': 'Enviar ficheiro',
VAT: 'IVA'
};

0 comments on commit 1338650

Please sign in to comment.