Skip to content
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 Language Options to Settings #4112

Merged
merged 5 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/remix-ide/src/app/tabs/locale-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ import * as packageJson from '../../../../../package.json'
import Registry from '../state/registry'
import enJson from './locales/en'
import zhJson from './locales/zh'
import esJson from './locales/es'
import frJson from './locales/fr'
const _paq = window._paq = window._paq || []

const locales = [
{ code: 'en', name: 'English', localeName: 'English', messages: enJson },
{ code: 'zh', name: 'Chinese Simplified', localeName: '简体中文', messages: zhJson },
{ code: 'en', name: 'English', localeName: 'English', messages: enJson },
{ code: 'fr', name: 'French', localeName: 'Français', messages: frJson },
{ code: 'es', name: 'Spanish', localeName: 'Español', messages: esJson }
]

const profile = {
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-ide/src/app/tabs/locales/fr/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"home.remixLinkedinProfile": "Remix Linkedin Profile",
"home.remixMediumPosts": "Remix Medium Posts",
"home.remixGitterChannel": "Join us on Discord",
"home.nativeIDE": "The Native IDE for Web3 Development.",
"home.nativeIDE": "L'EDI natif pour le développement Web3.",
"home.website": "Website",
"home.documentation": "Documentation",
"home.remixPlugin": "Remix Plugin",
Expand Down
1 change: 0 additions & 1 deletion libs/remix-ui/app/src/lib/remix-app/remix-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {CustomTooltip} from '@remix-ui/helper'
interface IRemixAppUi {
app: any
}

const RemixApp = (props: IRemixAppUi) => {
const [appReady, setAppReady] = useState<boolean>(false)
const [hideSidePanel, setHideSidePanel] = useState<boolean>(false)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, {useEffect, useState} from 'react'
import {FormattedMessage} from 'react-intl'
import {LocaleModule} from '../../types/locale-module'
import React, { useEffect, useState } from 'react'
import { FormattedMessage } from 'react-intl'
import { LocaleModule } from '../../types/locale-module'
import './remix-ui-locale-module.module.css'

export interface RemixUiLocaleModuleProps {
localeModule: LocaleModule
}

export function RemixUiLocaleModule({localeModule}: RemixUiLocaleModuleProps) {
export function RemixUiLocaleModule({ localeModule }: RemixUiLocaleModuleProps) {
const [localeCode, setLocaleCode] = useState('')

useEffect(() => {
Expand Down
Loading