This file contains hidden or 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
module.exports.http = { | |
middleware: { | |
passportInit : require('passport').initialize(), | |
passportSession : require('passport').session(), | |
order: [ | |
'startRequestTimer', | |
'cookieParser', | |
'session', |
This file contains hidden or 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
var passport = require( 'passport' ); | |
module.exports = { | |
facebook: function( req, res, next ) { | |
return passport.authenticate('facebook', { | |
scope: ['email'] | |
})( req, res, next ); | |
}, | |
This file contains hidden or 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
{ | |
'key_simple': 'Prosze, dwa bilety drugiej klasy do Warszawy.', | |
'key_with_plurals': [["Pozostała", "Pozostały", "Pozostało"], " ", "$count", " ", ["godzina", "godziny", "godzin"]], | |
'key_simple_with_number': 'Numer: $Count' | |
} |
This file contains hidden or 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
{ | |
'key_simple': 'Дайте, пожалуйста, два билета в вагон второго класса в Варшаву.', | |
'key_with_plurals': [["Остался", "Осталось", "Осталось"], " ", "$count", " ", ["час", "часа", "часов"]], | |
'key_simple_with_number': 'Просто число после двоеточия: $Count' | |
} |
This file contains hidden or 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
// Full example code see here - https://github.com/derzunov/redux-react-i18n/tree/master/example | |
import { i18nActions, i18nReducer, Loc } from 'redux-react-i18n'; | |
//... | |
// Code Code Code ... | |
//... | |
store.dispatch( i18nActions.setLanguages( | |
[ | |
{ |
This file contains hidden or 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
{ | |
'key_name': ["С момента входа ", ["прошёл", "прошло", "прошло"], " ", "$count", " ", ["час", "часа", "часов"]], | |
// ... | |
} |
This file contains hidden or 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
launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist | |
launchctl unload /System/Library/LaunchAgents/com.apple.nsurlsessiond.plist | |
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlsessiond.plist | |
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nsurlstoraged.plist |
OlderNewer