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
export function translatedStringFromObject(localizedString: ?LocalizedString): ?string { | |
if (!localizedString) return null; | |
if (typeof localizedString === 'string') { | |
return localizedString; | |
} | |
if (typeof localizedString === 'object') { | |
const expandedLocalizedString = { ...localizedString }; | |
// add locales without country | |
for (const underscoreLocale in localizedString) { |
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
const keys = [{ | |
"label" : "Travel guide", | |
"url" : "https://travelable.info/" | |
}, | |
{ | |
"label" : "Get involved", | |
"url" : "https://news.wheelmap.org/en/wheelmap-ambassador/" | |
}, | |
{ | |
"label" : "News", |
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
class ProtobufStd < Formula | |
homepage "https://github.com/google/protobuf/" | |
url 'https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2' | |
sha1 '6421ee86d8fb4e39f21f56991daa892a3e8d314b' | |
devel do | |
url "https://github.com/google/protobuf/archive/v3.0.0-alpha-2.tar.gz" | |
sha256 "46df8649e2a0ce736e37f8f347f92b32a9b8b54d672bf60bd8f6f4d24d283390" | |
version "3.0.0-alpha-2" |
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
require 'formula' | |
class ProtobufStd < Formula | |
homepage 'http://code.google.com/p/protobuf/' | |
url 'http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2' | |
sha1 '62c10dcdac4b69cc8c6bb19f73db40c264cb2726' | |
option :universal | |
option :cxx11 |
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
### Keybase proof | |
I hereby claim: | |
* I am mutaphysis on github. | |
* I am mutaphysis (https://keybase.io/mutaphysis) on keybase. | |
* I have a public key whose fingerprint is 107C 0A78 98EF A6CB 37A4 E071 3E14 6044 0D9C 1FC2 | |
To claim this, I am signing this object: |