投稿時間:2023-02-18 00:25:29 RSSフィード2023-02-18 00:00 分まとめ(24件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… Microsoft、「Surface Duo 2」向けに2023年2月のアップデートを配信開始 https://taisy0.com/2023/02/17/168609.html microsoft 2023-02-17 14:41:24
IT 気になる、記になる… 「iOS 16.4 beta 1」の新機能・変更点のまとめ ー 新絵文字追加やWebプッシュ通知対応など https://taisy0.com/2023/02/17/168597.html apple 2023-02-17 14:26:20
IT InfoQ Presentation: The After Party: Refactoring After 100x Hypergrowth https://www.infoq.com/presentations/hyper-growth-scalability/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global Presentation The After Party Refactoring After x HypergrowthPhil Calçado explores how they dealt with the hyper growth phase and what are the changes and initiatives they have put in place to make sure that they keep growing and pushing the envelope By Phil Calçado 2023-02-17 14:27:00
GCP gcpタグが付けられた新着投稿 - Qiita Cloud Composerでmax_active_tasks_per_dagのデフォルト値が機能していない問題 https://qiita.com/aibazhang/items/637b84b0dccf98952e42 rflowcoremaxactivetaskspe 2023-02-17 23:44:39
GCP gcpタグが付けられた新着投稿 - Qiita Google Cloudアップデート (2/9-2/15/2022) https://qiita.com/kenzkenz/items/5a434332595fb5e47107 authproxy 2023-02-17 23:05:32
Git Gitタグが付けられた新着投稿 - Qiita 【Git】保護ブランチをコマンドで設定する方法 https://qiita.com/P-man_Brown/items/03b6967662149e10cbc7 ownerownernamerepo 2023-02-17 23:58:31
海外TECH MakeUseOf The Advantages and Disadvantages of Using Payoneer as a Freelancer https://www.makeuseof.com/advantages-disadvantages-payoneer-freelancer/ The Advantages and Disadvantages of Using Payoneer as a FreelancerAre you a freelancer considering Payoneer for your payments Here are the benefits and drawbacks you should know to make an informed decision 2023-02-17 14:30:16
海外TECH MakeUseOf How to Try Bluetooth on the Raspberry Pi Pico W https://www.makeuseof.com/ihow-to-try-bluetooth-on-the-raspberry-pi-pico-w/ bluetooth 2023-02-17 14:16:16
海外TECH MakeUseOf Dangbei Mars Pro 4K Laser Projector Review https://www.makeuseof.com/dangbei-mars-pro-review/ dangbei 2023-02-17 14:05:15
海外TECH DEV Community Animations Made Easy: The Top React Animation Libraries You Need to Know https://dev.to/devrohit0/animations-made-easy-the-top-react-animation-libraries-you-need-to-know-335 Animations Made Easy The Top React Animation Libraries You Need to KnowAs a frontend developer you know that animation is an essential part of creating engaging and user friendly interfaces With React you have access to many animation libraries that can help you add delightful animations to your app In this post I ll introduce you to the best React animation libraries that can take your app to the next level React Spring React Spring is a powerful and flexible animation library that makes it easy to create fluid and natural animations It allows you to create complex animations and transitions that respond to user interactions making your app feel more interactive and dynamic React Spring provides a simple and intuitive API making it easy to use and customize Monthly Downloads M Framer Motion Framer Motion is a popular animation library that allows you to create stunning animations with ease With Framer Motion you can create animations and interactions that feel natural and intuitive giving your app a modern and polished feel The library provides a simple and declarative API making it easy to create and customize animations Monthly Downloads M React Transition Group React Transition Group is a library that makes it easy to animate the mounting and unmounting of components With React Transition Group you can add smooth transitions to your app s UI elements making them feel more polished and professional The library provides a simple and intuitive API making it easy to use and customize React Move React Move is a powerful and flexible animation library that allows you to create complex and sophisticated animations With React Move you can create animations that are both smooth and performant making your app feel more engaging and dynamic The library provides a declarative API making it easy to create and customize animations Monthly Downloads K Anime js Anime js is a lightweight and flexible animation library that allows you to create high quality animations with ease With Anime js you can create animations that are both smooth and performant making your app feel more dynamic and engaging The library provides a simple and intuitive API making it easy to use and customize React Simple Animate If you re looking for a lightweight and easy to use animation library for your React app React Simple Animate is definitely worth considering This library provides a simple API to create CSS based animations for your components without the need for complex configuration or external dependencies In conclusion these React animation libraries are sure to add some unique and creative features to your projects Whether you re looking to add simple CSS based animations or sophisticated and complex animations these libraries have got you covered So go ahead and try them out in your next React project and make your app more engaging and dynamic Have you tried any of these React animation libraries We d love to hear your thoughts and experiences in the comments below And if you ve used other libraries that you think deserve a mention please share them with us 2023-02-17 14:45:47
海外TECH DEV Community What was your win this week? https://dev.to/michaeltharrington/what-was-your-win-this-week-2on5 What was your win this week Heyo Hope y all all have fantastic weekends Looking back on this past week what was something you were proud of accomplishing All wins count ーbig or small Examples of wins include Starting a new projectFixing a tricky bugCleaning up your place 2023-02-17 14:25:34
海外TECH DEV Community Building a multi-language app with React JS 🌐 https://dev.to/franklin030601/building-a-multi-language-app-with-react-js-2och Building a multi language app with React JS Nowadays creating an app that supports multiple languages is becoming more and more indispensable to reach a wide range of users So this time with the help of React we are going to build it   Table of contents Technologies to be used Creating the project First steps Configuring in Using useTranslation Moving translations to separate files Conclusion Demo Source Code   Technologies to be used ️React JS ️inext ️Vite JS ️TypeScript ️CSS vanilla You can find the styles in the repository at the end of this post Creating the project We will name the project multi lang app optional you can name it whatever you like npm init vite latestWe create the project with Vite JS and select React with TypeScript Then we run the following command to navigate to the directory just created cd multi lang appThen we install the dependencies npm installThen we open the project in a code editor in my case VS code code First steps First we are going to install a library to be able to create routes in our app In this case we will use react router dom npm install react router domCreate a folder src pages and inside create files that will be our pages and will be very simpleHome tsxexport const Home gt return lt main gt lt h gt Multi language app lt h gt lt span gt Select another language lt span gt lt main gt About tsxexport const About gt return lt main gt lt h gt About lt h gt lt main gt We will also create a simple Menu component so that you can move between paths and change the language from any path But first let s define the languages to use in a separate file In my case I will create them in a folder src constants we create a file index ts and add export const LANGUAGES label Spanish code es label English code en label Italian code it Now we create a folder src components and inside the file Menu tsx and add the following import NavLink from react router dom import LANGUAGES from constants const isActive isActive any gt link isActive active export const Menu gt return lt nav gt lt div gt lt NavLink className isActive to gt Home lt NavLink gt lt NavLink className isActive to about gt About lt NavLink gt lt div gt lt select defaultValue es gt LANGUAGES map code label gt lt option key code value code gt label lt option gt lt select gt lt nav gt Finally we will create our router in the src App tsx file adding the pages and the Menu component import BrowserRouter Route Routes from react router dom import Menu from components Menu import About from pages About import Home from pages Home const App gt return lt BrowserRouter gt lt Menu gt lt Routes gt lt Route path element lt Home gt gt lt Route path about element lt About gt gt lt Routes gt lt BrowserRouter gt export default App And that s it we have a simple two route application Configuring in First we are going to install these dependencies npm install inext react inextreact inext is the package that will help us to translate our pages in a React project in an easier way but for that you need another package which is inext to make the internationalization configuration So basically inext is the ecosystem itself and react inext is the plugin to complement it Now let s create a new file named in ts we will create it inside the src folder src in ts Inside we are going to import the inext package and we are going to access the use method because we are going to load the initReactInext plugin to use the internationalization with React easier import in from inext import initReactInext from react inext in use initReactInext export default in Now we will access its init method to add a configuration object lng Default language fallbackLng Language that will be loaded in case the translations the user is looking for are not available resources an object with the translations to be used in the application interpolation escapeValue used to escape the values and avoid XSS attacks we will set it to false because React already does it by default import in from inext import initReactInext from react inext i use initReactInext init lng en fallbackLng en interpolation escapeValue false resources export default in In the resources part it has to be created as follows The key of the object must be the language code in this case en of English and then inside an object translation that inside will come all the translations identified by key value And it is important keep the same name of the key of the objects the only thing that changes is its value Note how in both translation objects inside they have the same title key resources en translation title Multi language app es translation title Aplicación en varios idiomas This is what our file will look like once the translations have been added import in from inext import initReactInext from react inext in use inBackend use initReactInext init fallbackLng en lng getCurrentLang interpolation escapeValue false resources en translation title Multi language app label Select another language about About home Home es translation title Aplicación en varios idiomas label Selecciona otro lenguaje about Sobre mí home Inicio it translation title Applicazione multilingue label Selezionare un altra lingua about Su di me home Casa export default in Finally this file will only be imported in the src main tsx file import React from react import ReactDOM from react dom client import App from App import in import index css ReactDOM createRoot document getElementById root as HTMLElement render lt React StrictMode gt lt App gt lt React StrictMode gt Using useTranslation Well now that we finished the in configuration let s use the translations we created So in the src components Menu tsx file we are going to use the useTranslation hook that react inext gives us We are going to use the hook that react inext gives us which is the useTranslation From this hook we retrieve the object inm and the function t const in t useTranslation To use the translations is as follows By means of brackets we execute the function t that receives as parameter a string that makes reference to the key of some value that is inside the translation object that we configured previously Verify in your configuration of the file in ts exists an object with the key home and that contains a value Depending on the default language you set it will be displayed lt NavLink className isActive to gt t home lt NavLink gt Well now let s switch between languages First a function that executes every time the select changes We access the value of the event Through the object in we access the method changeLanguage and we pass the value by parameter const onChangeLang e React ChangeEvent lt HTMLSelectElement gt gt const lang code e target value in changeLanguage lang code Now if you switch between languages you will see how the texts of your app change The Menu tsx file would look like this import useTranslation from react inext import NavLink from react router dom import LANGUAGES from constants index const isActive isActive any gt link isActive active export const Menu gt const in t useTranslation const onChangeLang e React ChangeEvent lt HTMLSelectElement gt gt const lang code e target value in changeLanguage lang code return lt nav gt lt div gt lt NavLink className isActive to gt t home lt NavLink gt lt NavLink className isActive to about gt t about lt NavLink gt lt div gt lt select defaultValue in language onChange onChangeLang gt LANGUAGES map code label gt lt option key code value code gt label lt option gt lt select gt lt nav gt Now let s go to the other pages to add the translation to the texts Home tsximport useTranslation from react inext export const Home gt const t useTranslation return lt main gt lt h gt t title lt h gt lt span gt t label lt span gt lt main gt About tsximport useTranslation from react inext export const About gt const t useTranslation return lt main gt lt h gt t about lt h gt lt main gt Well now let s quickly show you how to interpolate variables Inside the t function the second parameter is an object which you can specify the variable to interpolate Note that I add the property name Well then this property name I have to take it very much in accountimport useTranslation from react inext export const About gt const t useTranslation return lt main gt lt h gt t about lt h gt lt span gt t user name Bruce Wayne lt span gt lt main gt Now let s go to a json file but whatever I do in one it has to be replicated in all the translations json files First I add the new property user since I didn t have it before Then using double brackets I add the name of the property I assigned before which was name title Multi language app label Select another language about About me home Home user My name is name And in this way we interpolate values Moving translations to separate files But what happens when the translations are too many then your in ts file will get out of control The best thing to do is to move them to separate files For this we will need to install another plugin npm install inext http backendThis plugin will load the resources from a server so it will be on demand Now we are going to create inside the public folder a in folder public in And inside we are going to create json files that will be named according to their translation for example The file es json will be for the Spanish translations the file it json will be only for the Italian translations etc At the end we will have files because in this app we only handle languages Then we move each translation object content from the in ts file to its corresponding JSON file For example the en json file title Multi language app label Select another language about About home Home Once we have done that with the files we go to the in ts and we are going to modify some things First we are going to remove the resources property We are going to import the inext http backend package and by means of the use method we pass it as parameter so that it executes that plugin import in from inext import inBackend from inext http backend import initReactInext from react inext in use inBackend use initReactInext init fallbackLng en lng en interpolation escapeValue false export default in Finally we need to add a new property which is backend that receives an object which we will access to the loadPath property The loadPath property receives a function that contains the language and must return a string But a simpler way is to interpolate the lng variable This way we will have our path where the translations will be obtained note that I am pointing to the public folder Now when you want to add a new language just add the json file in the in folder inside public import in from inext import inBackend from inext http backend import initReactInext from react inext in use inBackend use initReactInext init fallbackLng en lng en interpolation escapeValue false backend loadPath http localhost in lng json export default in But there is one more step to do if you notice in the loadedPath property the host is http localhost and when you upload it to production the translations will not work so we must validate if we are in development mode or not in order to add the correct host import in from inext import inBackend from inext http backend import initReactInext from react inext const getCurrentHost import meta env MODE development http localhost LINK TO PROD in use inBackend use initReactInext init fallbackLng en lng en interpolation escapeValue false backend loadPath getCurrentHost in lng json export default in One more tip is that the translations as they are in the backend could still be loaded while the page is ready so it is advisable to manage a Suspense in the app import Suspense from react import BrowserRouter Route Routes from react router dom import Menu from components Menu import About from pages About import Home from pages Home const App gt return lt Suspense fallback loading gt lt BrowserRouter gt lt Menu gt lt Routes gt lt Route path element lt Home gt gt lt Route path about element lt About gt gt lt Routes gt lt BrowserRouter gt lt Suspense gt export default App The Suspense component pauses the app until it is ready and in the fallback property is what is shown to the user while waiting for the application to be ready here is a perfect place to put a loading or spinner You probably won t notice a considerable improvement since ours has very few translations But it is a good practice Conclusion Creating a multi language app is now easier thanks to in and its plugins I hope you liked this post and I also hope I helped you to understand how to make this kind of applications in an easier way If you know any other different or better way to make this application you can comment all your observations and suggestions I would appreciate it a lot I invite you to check my portfolio in case you are interested in contacting me for a project Franklin Martinez LucasDon t forget to follow me also on twitter Frankomtz Demo Source code 2023-02-17 14:02:08
海外TECH DEV Community Construyendo una app multi-lenguaje con React. 🌐 https://dev.to/franklin030601/construyendo-una-app-multi-lenguaje-con-react-44n2 Construyendo una app multi lenguaje con React En la actualidad crear una app que soporte varios idiomas se vuelve mas indispensable para llegar a un gran alcance con los usuarios Asi que en esta ocasión con ayuda de React vamos a construirlo   Tabla de contenido Tecnologías a utilizar Creando el proyecto Primeros pasos Configurando in Usando useTranslation Mover las traducciones a archivos separados Conclusión Demostración Código fuente   Tecnologías a utilizar m ️React JS ️inext ️Vite JS ️TypeScript ️CSS vanilla Los estilos los encuentras en el repositorio al final de este post Creando el proyecto Al proyecto le colocaremos el nombre de multi lang app opcional tu le puedes poner el nombre que gustes npm create vite latestCreamos el proyecto con Vite JS y seleccionamos React con TypeScript Luego ejecutamos el siguiente comando para navegar al directorio que se acaba de crear cd multi lang appLuego instalamos las dependencias npm installDespués abrimos el proyecto en un editor de código en mi caso VS code code Primeros pasos Primero vamos a instalar una librería para poder crear rutas en nuestra app En este caso usaremos react router domnpm install react router domCreamos una carpeta src pages y dentro creamos archivos que serán nuestras paginas y serán muy sencillasHome tsxexport const Home gt return lt main gt lt h gt Multi language app lt h gt lt span gt Select another language lt span gt lt main gt About tsxexport const About gt return lt main gt lt h gt About lt h gt lt main gt También crearemos un componente Menu sencillo para que se puedan move entre rutas y cambiar el idioma desde cualquier ruta Pero antes vamos a definir los lenguajes a usar en un archivo aparte En mi caso los creare en una carpeta src constants creamos un archivo index ts y agregamos export const LANGUAGES label Spanish code es label English code en label Italian code it Ahora si creamos una carpeta src components y dentro el archivo Menu tsx y agregamos lo siguiente import NavLink from react router dom import LANGUAGES from constants const isActive isActive any gt link isActive active export const Menu gt return lt nav gt lt div gt lt NavLink className isActive to gt Home lt NavLink gt lt NavLink className isActive to about gt About lt NavLink gt lt div gt lt select defaultValue es gt LANGUAGES map code label gt lt option key code value code gt label lt option gt lt select gt lt nav gt Finalmente crearemos nuestro router en el archivo src App tsx agregando las paginas y el componente Menu import BrowserRouter Route Routes from react router dom import Menu from components Menu import About from pages About import Home from pages Home const App gt return lt BrowserRouter gt lt Menu gt lt Routes gt lt Route path element lt Home gt gt lt Route path about element lt About gt gt lt Routes gt lt BrowserRouter gt export default AppY listo ya tenemos una aplicación sencilla de dos rutas Configurando in Primero vamos a instalar estas dependencias npm install inext react inextreact inext es el paquete que nos ayudaráa traducir nuestras paginas en un proyecto de React de una forma más fácil pero para ello necesita otro paquete que es inext para realizar la configuración de la internacionalizaciónAsi que básicamente inext es el ecosistema en si y react inext es el plugin para complementarlo Ahora vamos a crear un nuevo archivo nombrado in ts lo crearemos en la dentro de la carpeta src src in ts Dentro vamos a importar el paquete de inext y vamos a acceder al método use porque vamos a cargar el plugin de initReactInext para usar la internacionalización con React mas fácil import in from inext import initReactInext from react inext in use initReactInext export default in Ahora accederemos a su método init para agregar un objeto de configuración lng Lenguaje por defecto fallbackLng Lenguaje que se cargara en caso de que las traducciones que el usuario busca no están disponibles resources un objeto con las traducciones que se usaran en la aplicación interpolation escapeValue sirve para escapar los valores y evitar ataques XSS lo pondremos en false porque React ya lo hace por defecto import in from inext import initReactInext from react inext i use initReactInext init lng en fallbackLng en interpolation escapeValue false resources export default in En la parte de resources tiene que crearse de la siguiente manera La llave del objeto debe ser el código del lenguaje en este caso en de English y luego dentro un objeto translation que dentro vendrán todas las traducciones identificadas por llave valor Y es importante mantener el mismo nombre de la llave de los objetos lo único que cambia es su valor Nota como en ambos objetos translation dentro tienen la misma clave de titleresources en translation title Multi language app es translation title Aplicación en varios idiomas Asi quedaría nuestro archivo una vez agregada las traducciones import in from inext import initReactInext from react inext in use inBackend use initReactInext init fallbackLng en lng getCurrentLang interpolation escapeValue false resources en translation title Multi language app label Select another language about About home Home es translation title Aplicación en varios idiomas label Selecciona otro lenguaje about Sobre mí home Inicio it translation title Applicazione multilingue label Selezionare un altra lingua about Su di me home Casa export default in Finalmente este archivo solo lo importaremos en el archivo src main tsximport React from react import ReactDOM from react dom client import App from App import in import index css ReactDOM createRoot document getElementById root as HTMLElement render lt React StrictMode gt lt App gt lt React StrictMode gt Usando useTranslation Bueno ahora que terminamos la configuración de in vamos a usar las traducciones que creamos Asi que en el archivo src components Menu tsxVamos a usar el hook que nos da react inext que es el useTranslationDe este hook recuperamos el objeto inm y la función tconst in t useTranslation Para usar las traducciones es de la siguiente manera Mediante brackets ejecutamos la función t que recibe como parámetro un string que hace referencia a la llave de algún valor que esta dentro del objeto translation que configuramos anteriormente Verifica en tu configuración del archivo in ts exista un objeto con la llave home y que contenga un valor Dependiendo de lenguaje por defecto que coloques este se mostrara lt NavLink className isActive to gt t home lt NavLink gt Bueno ahora vamos a cambiar entre idiomas Primero una función que se ejecute cada vez que el select cambieAccedemos al valor del evento Mediante el objeto in accedemos al método changeLanguage y le pasamos el valor por parámetro const onChangeLang e React ChangeEvent lt HTMLSelectElement gt gt const lang code e target value in changeLanguage lang code Ahora si cambias entre idiomas veras como cambian los textos de tu app El archivo Menu tsx quedaría asi import useTranslation from react inext import NavLink from react router dom import LANGUAGES from constants index const isActive isActive any gt link isActive active export const Menu gt const in t useTranslation const onChangeLang e React ChangeEvent lt HTMLSelectElement gt gt const lang code e target value in changeLanguage lang code return lt nav gt lt div gt lt NavLink className isActive to gt t home lt NavLink gt lt NavLink className isActive to about gt t about lt NavLink gt lt div gt lt select defaultValue in language onChange onChangeLang gt LANGUAGES map code label gt lt option key code value code gt label lt option gt lt select gt lt nav gt Ahora vamos a las otras paginas para agregar la traducción a los textos Home tsximport useTranslation from react inext export const Home gt const t useTranslation return lt main gt lt h gt t title lt h gt lt span gt t label lt span gt lt main gt About tsximport useTranslation from react inext export const About gt const t useTranslation return lt main gt lt h gt t about lt h gt lt main gt Bueno ahora digamos rápidamente te mostrare como interpolar variables Dentro de la función t el segundo parámetro es un objeto el cual le puedes especificar la variable a interpolar Nota que yo le agrego la propiedad name Bueno entonces esta propiedad name la tengo que tener muy en cuentaimport useTranslation from react inext export const About gt const t useTranslation return lt main gt lt h gt t about lt h gt lt span gt t user name Bruce Wayne lt span gt lt main gt Ahora vamos a un archivo json pero lo que sea haga en uno se tiene que replicar en todos los archivos json de traducciones Primero agrego la nueva propiedad user ya que no la tenia antes Luego mediante corchetes dobles agrego el nombre de la propiedad que le asigne antes el cual era name title Multi language app label Select another language about About me home Home user My name is name Y de esa manera interpolamos valores Mover las traducciones a archivos separados Pero que pasa cuando las traducciones son demasiadas entonces tu archivo in ts se saldría de control Lo mejor sera moverlas a archivos separados Para esto necesitaremos instalar otro plugin npm install inext http backendEste plugin cargara los recursos desde un servidor por lo que sera bajo demanda Ahora vamos a crear dentro de la carpeta public una carpeta in public in Y dentro vamos a ir creando archivos json que serán nombrados según sea su traducción por ejemplo El archivo es json sera para las traducciones en Español el archivo it json sera solo para las traducciones en italiano etc Al final tendremos archivos porque en esta app solo manejamos idiomas Luego movemos cada contenido del objeto translation del archivo in ts a su archivo JSON correspondiente Por ejemplo el archivo en json title Multi language app label Select another language about About home Home Una vez echo eso con los archivos vamos al in ts y vamos a modificar algunas cosas Primero la propiedad resources la vamos a quitar Vamos a importar el paquete de inext http backend y mediante el método use se lo pasamos como parámetro para que ejecute ese plugin import in from inext import inBackend from inext http backend import initReactInext from react inext in use inBackend use initReactInext init fallbackLng en lng en interpolation escapeValue false export default in Finalmente necesitamos agregar una nueva propiedad la cual es backend que recibe un objeto al cual accederemos a la propiedad loadPath La propiedad loadPath recibe una función que contiene el lenguaje y debe retornar un string Pero una manera mas sencilla es interpolando la variable lng Asi tendremos nuestro path de donde se obtendrán las traducciones nota que estoy apuntando a la carpeta public Ahora cuando quieras agregar un nuevo idioma solo agregas el archivo json en la carpeta in dentro de public import in from inext import inBackend from inext http backend import initReactInext from react inext in use inBackend use initReactInext init fallbackLng en lng en interpolation escapeValue false backend loadPath http localhost in lng json export default in Pero hay un paso mas que hacer si notas en la propiedad loadedPath el host es http localhost y cuando lo suba a producción no funcionaran las traducciones por lo cual debemos validar si estamos en modo desarrollo o no para poder agregar el host correcto import in from inext import inBackend from inext http backend import initReactInext from react inext const getCurrentHost import meta env MODE development http localhost LINK TO PROD in use inBackend use initReactInext init fallbackLng en lng en interpolation escapeValue false backend loadPath getCurrentHost in lng json export default in Un tip más es que las traducciones como están en el backend podrían seguir siendo cargadas mientras la pagina ya esta lista por lo que es aconsejable manejar un Suspense en la app import Suspense from react import BrowserRouter Route Routes from react router dom import Menu from components Menu import About from pages About import Home from pages Home const App gt return lt Suspense fallback loading gt lt BrowserRouter gt lt Menu gt lt Routes gt lt Route path element lt Home gt gt lt Route path about element lt About gt gt lt Routes gt lt BrowserRouter gt lt Suspense gt export default AppEl componente Suspense pone en pausa la app hasta que este lista y en la propiedad fallback es lo que se le muestra al usuario mientras espera a que la aplicación este lista aquíes un lugar perfecto para poner un loading o spinner Probablemente no se note una mejora considerable ya que nuestra tiene muy pocas traducciones Pero es una buena practica Conclusión Crear una app multi idioma ahora resulta ser mas sencillo gracias a in y su plugins Espero que te haya gustado esta publicación y que también espero haberte ayudado a entender como realizar este tipo de aplicaciones de una manera mas fácil Si conoces alguna otra forma distinta o mejor de realizar esta aplicación con gusto puedes comentar todas tus observaciones y sugerencias te lo agradecería bastante Te invito a que revises mi portafolio en caso de que estés interesado en contactarme para algún proyecto Franklin Martinez LucasNo olvides seguirme también en twitter Frankomtz Demostración simple Código fuente 2023-02-17 14:02:04
Apple AppleInsider - Frontpage News Apple TV+ needs more content and they will train directors to get it https://appleinsider.com/articles/23/02/17/apple-tv-needs-more-content-and-they-will-train-directors-to-get-it?utm_medium=rss Apple TV needs more content and they will train directors to get itApple has unveiled a new six month Apple Studios Directors Program that will see existing directors shadow Apple TV series staff and get a one of a kind experience at Apple Park Where many or most Apple TV series are made by independent production companies commissioned by Apple the company has its own in house teams for Apple Studios and Apple Original Films Now Apple is looking to expand the pool of directors available for Apple TV work by launching this new program Our goal is to identify innovative and diverse visionaries and give them a front row seat to Apple Studios productions and opportunities to network says Apple Successful participants will be positioned to direct content for Apple TV Read more 2023-02-17 14:57:43
Apple AppleInsider - Frontpage News Daily Deals: M2 MacBook Air $1,095, Apple Watch Nike Series 7 sale, MacBook Pro 14" $1,799 & more https://appleinsider.com/articles/23/02/17/daily-deals-m2-macbook-air-1095-apple-watch-nike-series-7-sale-macbook-pro-14-1799-more?utm_medium=rss Daily Deals M MacBook Air Apple Watch Nike Series sale MacBook Pro quot amp moreSome of the hottest deals we found today include off a Samsung K Mini LED Smart TV an Echo Show for a th Gen iPod touch for and off an Acer curved monitor Save on an Acer Curved MonitorThe AppleInsider staff searches the internet for can t miss deals at online retailers to create a list of discounts on top tech items including discounts on Apple products TVs accessories and other gadgets We post the most valuable deals in our Daily Deals list to help you save money Read more 2023-02-17 14:38:31
Apple AppleInsider - Frontpage News Apple may be getting a slice of Google Chrome search earnings https://appleinsider.com/articles/23/02/17/apple-may-be-getting-a-slice-of-google-chrome-search-earnings?utm_medium=rss Apple may be getting a slice of Google Chrome search earningsA UK regulator appears to have discovered but then redacted that Google has been paying Apple search revenues through Chrome in order to discourage it from launching a rival system Google Chrome iconApple has regularly been rumored to be working on its own search engine to rival Google It appears it could be in the company s interest to not do so Read more 2023-02-17 14:14:20
Apple AppleInsider - Frontpage News Will Apple's headset drive an augmented reality renaissance? https://appleinsider.com/articles/23/02/17/part-suppliers-hope-that-apples-headset-will-fire-up-the-ar-market?utm_medium=rss Will Apple x s headset drive an augmented reality renaissance Just about every supplier of augmented reality headset components is reportedly gearing up to make more components in the expectation that where Apple leads many other manufacturers will quickly follow A render of a potential Apple headsetThe most recent rumors around an Apple AR headset say that it will be unveiled at WWDC in June That could be an early announcement perhaps months ahead of an Apple device shipping but reportedly it s already enough for some suppliers Read more 2023-02-17 14:25:50
海外TECH Engadget SEC charges Terraform Labs over alleged 'multi-biillion dollar' crypto fraud https://www.engadget.com/sec-charges-terraform-and-ceo-with-fraud-145347680.html?src=rss SEC charges Terraform Labs over alleged x multi biillion dollar x crypto fraudIt s not just international police trying to hold Terraform Labs accountable for a collapse that took billion from investors The Securities and Exchange Commission has charged Terraform and its CEO Do Kwon with securities fraud for allegedly running a quot multi billion dollar quot crypto asset scheme The blockchain startup purportedly misled investors by falsely claiming that its TerraUSD asset was a stablecoin pegged to the US dollar with high yields up to percent The firm also fooled people by claiming its Luna token would gain value thanks to a Korean mobile payment app that used the Terra blockchain to settle transactions Terraform and Do Kwon didn t provide quot full fair and truthful disclosure quot for their crypto asset securities SEC chair Gary Gensler says The charges include registration and anti fraud violations of the Securities Act and Exchange Act nbsp nbsp TerraUSD and Luna lost their peg to the US dollar in May with the prices of both plunging to near zero Investors lodged complaints accusing Terraform and Kwon of running a Ponzi scheme and the freefall contributed to the collapse of the crypto hedge fund Three Arrows Capital The crypto exchange Binance quickly faced a lawsuit over claims it incorrectly marketed TerraUSD as a safe asset While Kwon insisted that he wasn t evading capture he left his native South Korea refused to face investigators questions and was put on Interpol s quot red notice quot list The SEC s charges join a string of efforts to crack down on reported fraud among some of the crypto industry s biggest names Authorities have most notably pursued FTX and its founder Sam Bankman Fried over that exchange s downfall while former Celsius Network chief Alex Mashinsky is also accused of defrauding investors While crypto may still have a future it s clear government bodies want stricter enforcement of financial laws in this arena 2023-02-17 14:53:47
海外TECH Engadget The best SSD for your PlayStation 5 https://www.engadget.com/best-ps5-ssd-expansion-upgrade-150052315.html?src=rss The best SSD for your PlayStation In ten months after the PlayStation hit store shelves Sony released a software update that unlocked the console s storage expansion slot At launch the PS offered only GB of space for storing your games with no way to increase that While that was fine for some like me others like my son were forced to perform a near daily juggling act that involved frequently deleting and redownloading games due to the PS s small SSD and the apparent need to have constant access to every Call of Duty game Now you can increase your PS s available storage by slotting in a standard PCIe Gen x M NVMe SSD If that mess of acronyms has you recoiling don t worry you ll see that it s not all that complicated and if you want to know which drives we recommend you can skip to the end How much storage do I need Aaron Souppouris EngadgetThe PS will accept drives between GB and TB in capacity If you already own a PlayStation chances are you have a reasonable idea of how much storage you want If you re buying an SSD with a new PS or buying for someone else though it s more difficult to tell PS games are a little smaller on average than their PS equivalents typically taking up between GB and GB with some notable and very popular exceptions If you re a fan of the Call of Duty series installing Modern Warfare II and Warzone will require more than GB In other words a full Call of Duty install will take up almost one third of the PS s internal storage If you re not a CoD fan though chances are you ll be good to store between six to games on your PS internally before running into problems One additional thing to consider is your internet speed If you live in an area with slow broadband the “you can just download it again rationale doesn t really work out At my old home a GB download took me around eight hours during which time it was difficult to simultaneously watch Twitch or say publish articles about upgrading PS SSDs Keeping games around on the off chance you ll want to play them at some point makes sense Off the bat there s basically no point in going for a GB drive Economically GB drives aren t that much cheaper than GB ones and practically that really isn t a lot of space for modern games to live on GB drives coming in at around to are a decent bet but the sweet spot for most is to opt for a TB drive which should run you between and That will more than double the space you have available for games without breaking the bank Seagate s official TB Xbox Series expansion card for comparison sells for If you have the money TB drives sometimes offer marginal savings per gigabyte and can often be found when other models are out of stock Unless you re rolling in cash and want to flex TB models should mostly be avoided as you ll end up paying more per gigabyte than you would with a TB or TB drive One final note While the GB PS only provides GB of storage that s largely due to storage being reserved for the operating system and caching If you install a TB SSD you ll have within a margin of error TB of storage available for games What about external SSDs SamsungThese are dramatically cheaper than the high end internal SSDs but there are restrictions on what you can do with them An external SSD connects to your PS via USB and is only suitable for playing PS games or storing PS titles This is useful if you have anything but the best internet ーit s faster to move a PS game out of “cold storage on an external drive than it is to re download it ーor just want a large number of PS games to hand Due to the limitations here you don t need the highest performing model although you should opt for SSDs over HDDs for improved transfer speeds Any basic portable drive from a reputable brand will do with the Crucial X and Samsung T being options we ve tried and can recommend What SSDs are compatible with PS The official answer to this question is an “M Socket Key M Gen x NVME SSD But even within that seemingly specific description there are still more things to consider The main requirements Sony has laid out for compatibility come down to speed cooling and physical dimensions For speed Sony says drives should be able to handle sequential reads at MB s Early testing showed that the PS would accept drives as slow as MB s and that games that tap into the SSD regularly ーsuch as Ratchet amp Clank Rift Apart ーwould cause no issues Pretty much the only thing the PS will outright reject is one that doesn t match the Gen x spec In our opinion though using a drive slower than the specification is a risk that if you don t already have that drive lying around is not worth taking Just because we haven t found issues yet that doesn t mean there won t be games that will be problematic down the line The price difference between these marginally slower Gen drives and the ones that meet Sony s spec is not huge and you may as well cover all your bases Slightly more complicated than speed is cooling and size Most bare SSDs are going to be just fine the PS can fit mm wide SSDs of virtually any length mm mm mm mm or mm to be precise The vast majority of drives you find will be mm wide and mm long so no problem there It should be noted that the system can fit a mm wide drive but that width must include the cooling solution Speaking of Sony says SSDs require “effective heat dissipation with a cooling structure such as a heatsink The maximum height supported by Sony s slot is mm of which only mm can be “below the drive This previously meant some of the most popular heatsinked Gen SSDs including Corsair s MP Pro LPX and Sabrent s Rocket Plus would not fit within the PS s storage expansion slot Since Engadget first published this guide in most NVMe makers including Samsung have come out with PlayStation specific models that take care of those considerations That said if you want to save some money bare drives are often much cheaper and it s trivial to find a cooling solution that will work for the PS The only component in an NVMe SSD that really requires cooling is the controller which without a heatsink will happily sear a very small steak Most SSDs have chips on only one side but even on double sided SSDs the controller is likely to be on top as manufacturers know it needs to be positioned there to better dissipate heat So head to your PC component seller of choice and pick up basically anything that meets the recommended dimensions A good search term is “laptop NVME heatsink as these will be designed to fit in the confines of gaming laptops which are even more restrictive than a PS They re also typically cheaper than the ones labeled as “PS heatsinks One recommendation is this copper heatsink which attaches to the SSD with sticky thermal interface material It works just fine and really performing stress tests on a PC we couldn t find anything metal that didn t keep temperatures under control When you re searching just make sure the solution you go for measures no more than mm wide or mm tall including the thermal interface material and has a simple method of installation that s not going to cause any headaches Now if all of that was very boring here are some ready to go recommendations Best PS SSD Corsair MP Pro LPXThe Corsair MP Pro LPX makes it to the top of our list for checking all the boxes It s fast offering read speeds of up to MB s and comes with a pre installed heatsink It also ships with a five year warranty Best of all the MP is affordable In recent months the TB variant has sold for less than although it typically comes in at while the TB model will set you back about Best affordable PS SSD Crucial P PlusIf you want to save a bit of money by installing your own heatsink a Crucial P Plus NVMe is the way to go With read speeds of up to MB s the P Plus is only marginally slower than our top pick and you can frequently find the TB model for as little as when it s on sale Expect the TB variant to set you back about when on discount Other great optionsSamsung ProIf you re not familiar with companies like Crucial or Corsair and want to go with a more recognizable brand there s no bigger player in the NVMe space than Samsung The company recently began selling a heatsinked version of its highly regarded Pro SSD It s more expensive than some of the other NVMe drives on this list but not dramatically so You can expect to pay about for the TB model or around when it s on sale and for the TB version Sabrent Rocket PlusOf all the SSDs on this list the Sabrent Rocket Plus is the most interesting It comes with a unique heatsink that you install in place of the storage expansion slot s metal cover Sabrent claims this design improves cooling performance Pricing falls in line with Samsung s offering with the TB variant coming in at around and the TB model costing PNY XLRIf Sabrent s design is appealing to you but you can t find the Rocket Plus for a decent price when you go looking for one PNY offers a similar cooling solution with the PS version of its XLR NVMe You can find the TB model for about Expect the TB model to set you back about WD Black SNThe SN is another plug and play option for the PS offering sequential read speeds in excess of the console s compatibility requirements and a pre installed heatsink Western Digital sells a Sony licensed model of the SN that comes in TB and TB variants The former should set you back about while the latter costs about How to install an SSD in a PSBefore attempting to add more storage to your PS ensure that you have Sony s latest software installed Once you re up to date installation of a PS SSD is fairly straightforward Sony recommends a Phillips or crosshead screwdriver but this isn t rocket science Any crossed screwdriver of a similar size will do fine Begin by powering down your PS unplugging everything removing the stand and flipping it over to its underside If you have the regular PS that s the side with the disc drive if you have the Digital Edition it s the side without the PlayStation logo cutout Sony has a video guide to popping off the outside cover here but the gist is you gently lift up the opposing corners and slide the panel toward the flat end of the console There s a knack to this and it requires very little effort or strength If you re not getting it rather than force it just readjust your grip and try again A member of our video team managed to break one of the tabs on our review unit doing this in the past so…yeah don t force it EngadgetOnce you ve got everything open you ll see a rectangular piece of metal with a screw holding it in place Remove that screw and you ll be able to access the drive bay You ll see five holes inside each numbered corresponding to the standard SSD drive lengths I mentioned earlier The one numbered will have a metal insert and screw inside You need to unscrew the screw with a screwdriver and then unscrew the insert with your fingers and move it to the relevant hole Your eyes should tell you which is the right one for your drive but it s most likely going to be Aaron Souppouris EngadgetThen take your SSD ーmine is a Pro I bought on Prime Day with a piece of aluminum attached to the top ーand slot it in The slot is at the edge closest to the number “ and SSDs are keyed to only fit in one way so again no force is required If it s not sliding in don t force it You ll notice the SSD doesn t sit flat ーthat s fine and is as intended EngadgetOnce the SSD is seated take the screw you removed from the insert line it up with the little notch at the end of your SSD and push down so it meets the insert Give the screw a few turns ーit doesn t need to be very tight ーand you re done EngadgetReplace the metal cover and screw it down and then slide the plastic outer shell back on When you first turn on the PS it ll prompt you to format the drive Do that You have now successfully expanded your console s storage and can set about downloading and moving games to it Personally I moved all of the PS games I had to the new drive along with all of my clips and screenshots The PS s built in SSD is always going to be the most compliant so I m keeping my important stuff there We ll be updating this guide as more SSDs come to market and onto our test bench so feel free to bookmark it for when you need it Igor Bonifacic contributed to this report 2023-02-17 14:16:19
金融 金融庁ホームページ エヌエヌ生命保険株式会社に対する行政処分について公表しました。 https://www.fsa.go.jp/news/r4/hoken/20230217/20230217-1.html 株式会社 2023-02-17 16:00:00
ニュース @日本経済新聞 電子版 企業の温暖化ガス排出開示、国際ルールを来年適用 https://t.co/1RuSQP3wi6 https://twitter.com/nikkei/statuses/1626588775395786754 国際ルール 2023-02-17 14:25:59
ニュース @日本経済新聞 電子版 ソロス氏発言、インドで波紋 アダニ巡る首相責任も言及 https://t.co/lFd9Mx0Yxv https://twitter.com/nikkei/statuses/1626584506953261059 首相 2023-02-17 14:09:01
ニュース BBC News - Home NI post-Brexit trade faces big moment, says DUP https://www.bbc.co.uk/news/uk-northern-ireland-64671210?at_medium=RSS&at_campaign=KARANGA brexit 2023-02-17 14:25:31
ニュース BBC News - Home Women's T20 World Cup: The best of Maddy Green as she hits 44 off 20 against Bangladesh https://www.bbc.co.uk/sport/av/cricket/64560380?at_medium=RSS&at_campaign=KARANGA Women x s T World Cup The best of Maddy Green as she hits off against BangladeshWatch the best of New Zealand s Maddy Green as she hits off helping her side produce against Bangladesh the highest score in the tournament so far 2023-02-17 14:50:44

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)