-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge refs/heads/master into hflatval/bump-version-sidebar-4.x
- Loading branch information
Showing
16 changed files
with
17,756 additions
and
16,001 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Translation sync added and deleted keys to locize | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
locize-sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
always-auth: true | ||
|
||
- name: Setup Cognite CICD Yarn | ||
run: | | ||
echo " | ||
npmScopes: | ||
cognite: | ||
npmAlwaysAuth: true | ||
npmAuthToken: \"\${NPM_TOKEN}\" | ||
npmRegistryServer: "https://registry.npmjs.org" | ||
" >> .yarnrc.yml | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
- name: Install NPM dependencies | ||
working-directory: react-components | ||
run: yarn install --immutable | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
||
- name: 'Save added keys to locize' | ||
working-directory: react-components | ||
run: yarn save-missing | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
LOCIZE_API_KEY: ${{ secrets.LOCIZE_API_KEY }} | ||
|
||
- name: 'Remove deleted keys from locize' | ||
working-directory: react-components | ||
run: yarn remove-deleted | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
LOCIZE_API_KEY: ${{ secrets.LOCIZE_API_KEY }} |
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
34 changes: 34 additions & 0 deletions
34
react-components/src/common/i18n/en/reveal-react-components.json
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,34 @@ | ||
{ | ||
"CAD_MODELS": "CAD models", | ||
"POINT_CLOUDS": "Point clouds", | ||
"IMAGES_360": "360 images", | ||
"HIGH_FIDELITY": "High fidelity", | ||
"PAN": "Pan", | ||
"TOUCH_SELECT": "Tap to select", | ||
"TOUCH_ZOOM": "Zoom", | ||
"MOUSE_ZOOM": "Zoom / scroll", | ||
"MOUSE_ROTATE": "Rotate", | ||
"MOUSE_INSTRUCTIONS": "Click+drag", | ||
"MOUSE_SELECT": "Select Objects", | ||
"MOUSE_SELECT_INSTRUCTION": "Click on interactive objects", | ||
"KEYBOARD_DOWN": "Down", | ||
"KEYBOARD_UP": "Up", | ||
"KEYBOARD_FORWARD": "Forward", | ||
"KEYBOARD_BACK": "Back", | ||
"KEYBOARD_RIGHT": "Right", | ||
"KEYBOARD_LEFT": "Left", | ||
"KEYBOARD_LOOK_DOWN": "Look Down", | ||
"KEYBOARD_LOOK_UP": "Look Up", | ||
"KEYBOARD_LOOK_RIGHT": "Look Right", | ||
"KEYBOARD_LOOK_LEFT": "Look Left", | ||
"KEYBOARD_NAVIGATION_TITLE": "Keyboard", | ||
"KEYBOARD_NAVIGATION_SUBTITLE": "Move and look around", | ||
"KEYBOARD_NAVIGATION_DESCRIPTION": "Click and hold to move.\nYou can also use mouse in conjunction with keys.", | ||
"MOUSE_NAVIGATION_TITLE": "Mouse", | ||
"MOUSE_TOUCH_NAVIGATION_SUBTITLE": "Navigate and select", | ||
"MOUSE_NAVIGATION_DESCRIPTION": "Click and drag to rotate, and pan the view. Use mouse wheel to zoom the view. Left click to select", | ||
"TOUCH_NAVIGATION_TITLE": "Touch", | ||
"TOUCH_NAVIGATION_DESCRIPTION": "Use gestures to zoom, pan and select", | ||
"IMAGES_360_STATION": "Station :", | ||
"IMAGES_360_DETAILS": "Details" | ||
} |
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,15 @@ | ||
/*! | ||
* Copyright 2023 Cognite AS | ||
*/ | ||
import { useTypedTranslation } from '@cognite/cdf-i18n-utils'; | ||
|
||
import en from './en/reveal-react-components.json'; | ||
|
||
export const translations = { | ||
en: { 'reveal-react-components': en } | ||
}; | ||
|
||
export type TranslationKeys = keyof typeof en; | ||
|
||
export const useTranslation = (): ReturnType<typeof useTypedTranslation<TranslationKeys>> => | ||
useTypedTranslation<TranslationKeys>(); |
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
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.