gemercheung hace 2 años
padre
commit
7625840f8a

+ 5 - 0
src/App.vue

@@ -23,6 +23,8 @@
   import { useLocale } from '/@/locales/useLocale';
   import { LocaleType } from '/#/config';
   import { useI18n } from '/@/hooks/useI18n';
+  import BaseDialog from '/@/components/chatRoom/dialog/base.vue';
+
   const { createTourPlayer } = useTourPlayer();
   const showDebug = ref(true);
   const { t } = useI18n();
@@ -290,8 +292,11 @@
       <!-- panel start-->
       <GuidePanel v-if="isTourMode" />
       <!-- panel end -->
+
+     
     </template>
   </div>
+  <BaseDialog />
 </template>
 
 <style lang="scss">

+ 6 - 2
src/components/basic/floorplan.vue

@@ -21,7 +21,7 @@
             mode == 'floorplan' ? 'show_plane_selected' : 'show_plane_normal'
           "
         ></ui-icon> -->
-        二维
+        {{ t('base.floorPlan') }}
       </span>
       <span :class="{ active: isDollhouse }" ref="dollhouse_ref" @click="changeMode('dollhouse')">
         <i
@@ -34,7 +34,8 @@
         <!-- <ui-icon
           :type="mode == 'dollhouse' ? 'show_3d_selected' : 'show_3d_normal'"
         ></ui-icon> -->
-        三维
+        <!-- 三维 -->
+        {{ t('base.dollhouse') }}
       </span>
       <div class="background" ref="background"></div>
     </div>
@@ -43,6 +44,7 @@
 
 <script lang="ts">
   import { computed, defineComponent, ref, watchEffect, watch, unref } from 'vue';
+  import { useI18n } from '/@/hooks/useI18n';
   import { propTypes } from '/@/utils/propTypes';
 
   export default defineComponent({
@@ -54,6 +56,7 @@
     },
     emits: ['changeMode', 'toggleMap'],
     setup(props, { emit }) {
+      const { t } = useI18n();
       const refMiniMap = ref<Nullable<string>>(null);
       const ifShow = ref(false);
       const background = ref<Nullable<HTMLElement>>(null);
@@ -99,6 +102,7 @@
       };
 
       return {
+        t,
         changeMode,
         refMiniMap,
         ifShow,

+ 4 - 1
src/components/basic/miniMap.vue

@@ -9,12 +9,13 @@
       <i
         class="iconfont ui-kankan-icon icon tip-h-center tip-v-bottom icon-show_3d_normal iconzm-show_3d_normal"
       ></i>
-      <span> 3D模型</span>
+      <span> {{ t('base.threeDModel') }}</span>
     </div>
   </teleport>
 </template>
 <script lang="ts">
   import { defineComponent, onMounted, ref, watch } from 'vue';
+  import { useI18n } from '/@/hooks/useI18n';
   import { propTypes } from '/@/utils/propTypes';
   const refMiniMap = ref<Nullable<string>>(null);
   const ifShow = ref(false);
@@ -32,6 +33,7 @@
     },
     emits: ['changeMode', 'toggleMap'],
     setup(props, { emit }) {
+      const { t } = useI18n();
       onMounted(() => {
         watch(
           () => [props.show, props.to],
@@ -61,6 +63,7 @@
       };
 
       return {
+        t,
         toggleMap,
         changeMode,
         refMiniMap,

+ 3 - 1
src/components/chatRoom/index.vue

@@ -5,7 +5,7 @@
     <!-- 当前人数 start -->
     <div class="member_number" v-if="isPanoramaMode">
       <div class="members"></div>
-      <span>{{ members.length }}观看</span>
+      <span>{{ members.length }}{{ t('base.view') }}</span>
     </div>
     <!-- 当前人数 end -->
     <!-- 控制条 start -->
@@ -142,6 +142,7 @@
   import CreatedName from './dialog/createdName.vue';
   import BaseDialog from './dialog/base.vue';
   import { useAppStore } from '/@/store/modules/app';
+  import { useI18n } from '/@/hooks/useI18n';
   // hook
   const { isDrawing, setDraw, setCloseDraw } = useDraw();
   const { initialRoom } = useRoom();
@@ -174,6 +175,7 @@
   const showCloseDialog = ref(false);
   const showCreateNameDialog = ref(false);
 
+  const { t } = useI18n();
   const { sceneList } = useRoom();
 
   watchEffect(() => {

+ 21 - 0
src/locales/lang/en/base.ts

@@ -1,3 +1,24 @@
 export default {
   debuginfo: 'debug info',
+  floorPlan: 'floorPlan',
+  dollhouse: 'dollhouse',
+  threeDModel: '3D Model',
+  saySomething: 'Comment',
+  memberManager: 'Member Management',
+  sceneList: 'Scene List',
+  inviteFriends: 'Invite Friends',
+  copy: 'copy',
+  share: 'share',
+  cancel: 'cancel',
+  tips: 'tips',
+  maxRooms: 'The maximum number of viewers has been reached; you can switch to  Walkthrough.',
+  freeWalk: 'Walkthrough',
+  endRoom: 'Confirm to end the livestream',
+  endNow: 'end',
+  disabledTalk: 'The host is muted you',
+  floorPlanView: 'Floor plan/ Dollhouse',
+  copySuccess: 'Successfully copied',
+  errorRoom: 'Abnormal studio, please contact the host.',
+  knowIt: 'Confirm。',
+  view: 'view',
 };

+ 22 - 0
src/locales/lang/zh/base.ts

@@ -1,3 +1,25 @@
 export default {
   debuginfo: '调试信息',
+  floorPlan: '二维',
+  dollhouse: '三维',
+  threeDModel: '3D模型',
+  saySomething: '说点什么~',
+  memberManager: '成员管理',
+  sceneList: '场景列表',
+  inviteFriends: '邀请好友',
+  copy: '复制',
+  confirm: '确定',
+  share: '分享',
+  cancel: '取消',
+  tips: '温馨提示',
+  maxRooms: '带看人数已满,可切换自由观看。',
+  freeWalk: '自由观看',
+  endRoom: '是否结束带看?',
+  endNow: '立即结束',
+  disabledTalk: '主持人设置了禁言',
+  floorPlanView: '平面',
+  copySuccess: '复制成功',
+  errorRoom: '房间异常,请联系主持人。',
+  knowIt: '我知道了。',
+  view: '观看',
 };