Skip to content

Commit

Permalink
chore: delete logs and language vite exaple
Browse files Browse the repository at this point in the history
  • Loading branch information
rboixaderg committed Jan 25, 2024
1 parent 5cb31f8 commit 076fa57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion e2e/vite_example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ function App() {
<Layout auth={auth} onLogout={onLogout}>
{isLogged && (
<Guillotina
locale={navigator.language || 'en'}
locale={
['ca', 'en', 'es'].includes(navigator.language)
? navigator.language
: 'en'
}
auth={auth}
url={currentSchema}
registry={{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.25.2",
"version": "0.26.0",
"repository": {
"type": "git",
"url": "[email protected]:guillotinaweb/guillotina_react.git"
Expand Down
4 changes: 1 addition & 3 deletions src/guillo-gmi/components/behaviors/iworkflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ export function IWorkflow() {
setWorkflowAction(null)
}
const getStateTitle = () => {
console.log('getStateTitle', vocabulary)
if (vocabulary.data?.items?.length > 0) {
const vocabularyValue = vocabulary.data.items.find(
(item) => item.token === currentState
)
console.log('state title', vocabularyValue, intl.locale)
if (vocabularyValue) {
const translatedValue = get(
vocabularyValue,
Expand All @@ -102,7 +100,7 @@ export function IWorkflow() {
}
return currentState
}
console.log('Workflow log')

if (definition === undefined) return null

return (
Expand Down

0 comments on commit 076fa57

Please sign in to comment.