File tree Expand file tree Collapse file tree 5 files changed +11
-16
lines changed
Expand file tree Collapse file tree 5 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1- on :
2- push :
3- tags :
4- - " v*"
5-
1+ name : Release
2+ on : workflow_dispatch
63jobs :
74 release :
85 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ // eslint-disable-next-line no-useless-escape
12export default ( ) => typeof navigator !== 'undefined' && / V e r s i o n \/ [ \d \. ] + .* S a f a r i / . test ( navigator . userAgent ) ;
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ const reducer = handleActions(
2121 yml : action . payload ,
2222 } ;
2323 } ,
24- // eslint-disable-next-line @typescript-eslint/no-unused-vars
25- RESET_YAML : ( state , action ) => {
24+ RESET_YAML : ( state ) => {
2625 return {
2726 ...state ,
2827 yml : null ,
Original file line number Diff line number Diff line change @@ -19,22 +19,19 @@ const initialState = {
1919
2020const reducer = handleActions (
2121 {
22- // eslint-disable-next-line @typescript-eslint/no-unused-vars
23- ON_IMPORT : ( state , action ) => {
22+ ON_IMPORT : ( state ) => {
2423 return {
2524 ...state ,
2625 yml : null ,
2726 } ;
2827 } ,
29- // eslint-disable-next-line @typescript-eslint/no-unused-vars
30- ON_GENERATE : ( state , action ) => {
28+ ON_GENERATE : ( state ) => {
3129 return {
3230 ...state ,
3331 yml : null ,
3432 } ;
3533 } ,
36- // eslint-disable-next-line @typescript-eslint/no-unused-vars
37- ON_CHANGE_LANGUAGE : ( state , action ) => {
34+ ON_CHANGE_LANGUAGE : ( state ) => {
3835 return {
3936 ...state ,
4037 yml : null ,
Original file line number Diff line number Diff line change 1- import i18n from "i18next" ;
2- import { initReactI18next } from "react-i18next" ;
3- import locales from "locale-codes" ;
41import { countries } from "countries-list" ;
2+ import i18n from "i18next" ;
53import LanguageDetector from 'i18next-browser-languagedetector' ;
4+ import locales from "locale-codes" ;
5+ import { initReactI18next } from "react-i18next" ;
66
77import { FALLBACK_LANGUAGE } from "../app/contents/constants" ;
88import en from "./locales/en.json" ;
4444export const displayName = ( tag : string , locale : string = i18n . language , entity : LocalizedEntity ) => {
4545 try {
4646 return new Intl . DisplayNames ( [ locale ] , { type : entity } ) . of ( tag ) ;
47+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4748 } catch ( e ) {
4849 return null ;
4950 }
You can’t perform that action at this time.
0 commit comments